Documentation
¶
Overview ¶
Package content provides access to the Content API for Shopping.
For product documentation, see: https://developers.google.com/shopping-content/v2/
Creating a client ¶
Usage example:
import "google.golang.org/api/content/v2.1" ... ctx := context.Background() contentService, err := content.NewService(ctx)
In this example, Google Application Default Credentials are used for authentication.
For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options ¶
To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
contentService, err := content.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) contentService, err := content.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See https://godoc.org/google.golang.org/api/option/ for details on options.
Index ¶
- Constants
- type APIService
- type Account
- type AccountAddress
- type AccountAdsLink
- type AccountBusinessInformation
- type AccountCredentials
- type AccountCustomerService
- type AccountGoogleMyBusinessLink
- type AccountIdentifier
- type AccountLabel
- type AccountReturnCarrier
- type AccountStatus
- type AccountStatusAccountLevelIssue
- type AccountStatusItemLevelIssue
- type AccountStatusProducts
- type AccountStatusStatistics
- type AccountTax
- type AccountTaxTaxRule
- type AccountUser
- type AccountYouTubeChannelLink
- type AccountsAuthInfoResponse
- type AccountsAuthinfoCall
- func (c *AccountsAuthinfoCall) Context(ctx context.Context) *AccountsAuthinfoCall
- func (c *AccountsAuthinfoCall) Do(opts ...googleapi.CallOption) (*AccountsAuthInfoResponse, error)
- func (c *AccountsAuthinfoCall) Fields(s ...googleapi.Field) *AccountsAuthinfoCall
- func (c *AccountsAuthinfoCall) Header() http.Header
- func (c *AccountsAuthinfoCall) IfNoneMatch(entityTag string) *AccountsAuthinfoCall
- type AccountsClaimWebsiteResponse
- type AccountsClaimwebsiteCall
- func (c *AccountsClaimwebsiteCall) Context(ctx context.Context) *AccountsClaimwebsiteCall
- func (c *AccountsClaimwebsiteCall) Do(opts ...googleapi.CallOption) (*AccountsClaimWebsiteResponse, error)
- func (c *AccountsClaimwebsiteCall) Fields(s ...googleapi.Field) *AccountsClaimwebsiteCall
- func (c *AccountsClaimwebsiteCall) Header() http.Header
- func (c *AccountsClaimwebsiteCall) Overwrite(overwrite bool) *AccountsClaimwebsiteCall
- type AccountsCredentialsCreateCall
- func (c *AccountsCredentialsCreateCall) Context(ctx context.Context) *AccountsCredentialsCreateCall
- func (c *AccountsCredentialsCreateCall) Do(opts ...googleapi.CallOption) (*AccountCredentials, error)
- func (c *AccountsCredentialsCreateCall) Fields(s ...googleapi.Field) *AccountsCredentialsCreateCall
- func (c *AccountsCredentialsCreateCall) Header() http.Header
- type AccountsCredentialsService
- type AccountsCustomBatchRequest
- type AccountsCustomBatchRequestEntry
- type AccountsCustomBatchRequestEntryLinkRequest
- type AccountsCustomBatchResponse
- type AccountsCustomBatchResponseEntry
- type AccountsCustombatchCall
- func (c *AccountsCustombatchCall) Context(ctx context.Context) *AccountsCustombatchCall
- func (c *AccountsCustombatchCall) Do(opts ...googleapi.CallOption) (*AccountsCustomBatchResponse, error)
- func (c *AccountsCustombatchCall) Fields(s ...googleapi.Field) *AccountsCustombatchCall
- func (c *AccountsCustombatchCall) Header() http.Header
- type AccountsDeleteCall
- func (c *AccountsDeleteCall) Context(ctx context.Context) *AccountsDeleteCall
- func (c *AccountsDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *AccountsDeleteCall) Fields(s ...googleapi.Field) *AccountsDeleteCall
- func (c *AccountsDeleteCall) Force(force bool) *AccountsDeleteCall
- func (c *AccountsDeleteCall) Header() http.Header
- type AccountsGetCall
- func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall
- func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error)
- func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall
- func (c *AccountsGetCall) Header() http.Header
- func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall
- func (c *AccountsGetCall) View(view string) *AccountsGetCall
- type AccountsInsertCall
- type AccountsLabelsCreateCall
- func (c *AccountsLabelsCreateCall) Context(ctx context.Context) *AccountsLabelsCreateCall
- func (c *AccountsLabelsCreateCall) Do(opts ...googleapi.CallOption) (*AccountLabel, error)
- func (c *AccountsLabelsCreateCall) Fields(s ...googleapi.Field) *AccountsLabelsCreateCall
- func (c *AccountsLabelsCreateCall) Header() http.Header
- type AccountsLabelsDeleteCall
- func (c *AccountsLabelsDeleteCall) Context(ctx context.Context) *AccountsLabelsDeleteCall
- func (c *AccountsLabelsDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *AccountsLabelsDeleteCall) Fields(s ...googleapi.Field) *AccountsLabelsDeleteCall
- func (c *AccountsLabelsDeleteCall) Header() http.Header
- type AccountsLabelsListCall
- func (c *AccountsLabelsListCall) Context(ctx context.Context) *AccountsLabelsListCall
- func (c *AccountsLabelsListCall) Do(opts ...googleapi.CallOption) (*ListAccountLabelsResponse, error)
- func (c *AccountsLabelsListCall) Fields(s ...googleapi.Field) *AccountsLabelsListCall
- func (c *AccountsLabelsListCall) Header() http.Header
- func (c *AccountsLabelsListCall) IfNoneMatch(entityTag string) *AccountsLabelsListCall
- func (c *AccountsLabelsListCall) PageSize(pageSize int64) *AccountsLabelsListCall
- func (c *AccountsLabelsListCall) PageToken(pageToken string) *AccountsLabelsListCall
- func (c *AccountsLabelsListCall) Pages(ctx context.Context, f func(*ListAccountLabelsResponse) error) error
- type AccountsLabelsPatchCall
- func (c *AccountsLabelsPatchCall) Context(ctx context.Context) *AccountsLabelsPatchCall
- func (c *AccountsLabelsPatchCall) Do(opts ...googleapi.CallOption) (*AccountLabel, error)
- func (c *AccountsLabelsPatchCall) Fields(s ...googleapi.Field) *AccountsLabelsPatchCall
- func (c *AccountsLabelsPatchCall) Header() http.Header
- type AccountsLabelsService
- func (r *AccountsLabelsService) Create(accountId int64, accountlabel *AccountLabel) *AccountsLabelsCreateCall
- func (r *AccountsLabelsService) Delete(accountId int64, labelId int64) *AccountsLabelsDeleteCall
- func (r *AccountsLabelsService) List(accountId int64) *AccountsLabelsListCall
- func (r *AccountsLabelsService) Patch(accountId int64, labelId int64, accountlabel *AccountLabel) *AccountsLabelsPatchCall
- type AccountsLinkCall
- type AccountsLinkRequest
- type AccountsLinkResponse
- type AccountsListCall
- func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall
- func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListResponse, error)
- func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall
- func (c *AccountsListCall) Header() http.Header
- func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall
- func (c *AccountsListCall) Label(label uint64) *AccountsListCall
- func (c *AccountsListCall) MaxResults(maxResults int64) *AccountsListCall
- func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall
- func (c *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListResponse) error) error
- func (c *AccountsListCall) View(view string) *AccountsListCall
- type AccountsListLinksResponse
- type AccountsListResponse
- type AccountsListlinksCall
- func (c *AccountsListlinksCall) Context(ctx context.Context) *AccountsListlinksCall
- func (c *AccountsListlinksCall) Do(opts ...googleapi.CallOption) (*AccountsListLinksResponse, error)
- func (c *AccountsListlinksCall) Fields(s ...googleapi.Field) *AccountsListlinksCall
- func (c *AccountsListlinksCall) Header() http.Header
- func (c *AccountsListlinksCall) IfNoneMatch(entityTag string) *AccountsListlinksCall
- func (c *AccountsListlinksCall) MaxResults(maxResults int64) *AccountsListlinksCall
- func (c *AccountsListlinksCall) PageToken(pageToken string) *AccountsListlinksCall
- func (c *AccountsListlinksCall) Pages(ctx context.Context, f func(*AccountsListLinksResponse) error) error
- type AccountsReturncarrierCreateCall
- func (c *AccountsReturncarrierCreateCall) Context(ctx context.Context) *AccountsReturncarrierCreateCall
- func (c *AccountsReturncarrierCreateCall) Do(opts ...googleapi.CallOption) (*AccountReturnCarrier, error)
- func (c *AccountsReturncarrierCreateCall) Fields(s ...googleapi.Field) *AccountsReturncarrierCreateCall
- func (c *AccountsReturncarrierCreateCall) Header() http.Header
- type AccountsReturncarrierDeleteCall
- func (c *AccountsReturncarrierDeleteCall) Context(ctx context.Context) *AccountsReturncarrierDeleteCall
- func (c *AccountsReturncarrierDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *AccountsReturncarrierDeleteCall) Fields(s ...googleapi.Field) *AccountsReturncarrierDeleteCall
- func (c *AccountsReturncarrierDeleteCall) Header() http.Header
- type AccountsReturncarrierListCall
- func (c *AccountsReturncarrierListCall) Context(ctx context.Context) *AccountsReturncarrierListCall
- func (c *AccountsReturncarrierListCall) Do(opts ...googleapi.CallOption) (*ListAccountReturnCarrierResponse, error)
- func (c *AccountsReturncarrierListCall) Fields(s ...googleapi.Field) *AccountsReturncarrierListCall
- func (c *AccountsReturncarrierListCall) Header() http.Header
- func (c *AccountsReturncarrierListCall) IfNoneMatch(entityTag string) *AccountsReturncarrierListCall
- type AccountsReturncarrierPatchCall
- func (c *AccountsReturncarrierPatchCall) Context(ctx context.Context) *AccountsReturncarrierPatchCall
- func (c *AccountsReturncarrierPatchCall) Do(opts ...googleapi.CallOption) (*AccountReturnCarrier, error)
- func (c *AccountsReturncarrierPatchCall) Fields(s ...googleapi.Field) *AccountsReturncarrierPatchCall
- func (c *AccountsReturncarrierPatchCall) Header() http.Header
- type AccountsReturncarrierService
- func (r *AccountsReturncarrierService) Create(accountId int64, accountreturncarrier *AccountReturnCarrier) *AccountsReturncarrierCreateCall
- func (r *AccountsReturncarrierService) Delete(accountId int64, carrierAccountId int64) *AccountsReturncarrierDeleteCall
- func (r *AccountsReturncarrierService) List(accountId int64) *AccountsReturncarrierListCall
- func (r *AccountsReturncarrierService) Patch(accountId int64, carrierAccountId int64, ...) *AccountsReturncarrierPatchCall
- type AccountsService
- func (r *AccountsService) Authinfo() *AccountsAuthinfoCall
- func (r *AccountsService) Claimwebsite(merchantId uint64, accountId uint64) *AccountsClaimwebsiteCall
- func (r *AccountsService) Custombatch(accountscustombatchrequest *AccountsCustomBatchRequest) *AccountsCustombatchCall
- func (r *AccountsService) Delete(merchantId uint64, accountId uint64) *AccountsDeleteCall
- func (r *AccountsService) Get(merchantId uint64, accountId uint64) *AccountsGetCall
- func (r *AccountsService) Insert(merchantId uint64, account *Account) *AccountsInsertCall
- func (r *AccountsService) Link(merchantId uint64, accountId uint64, accountslinkrequest *AccountsLinkRequest) *AccountsLinkCall
- func (r *AccountsService) List(merchantId uint64) *AccountsListCall
- func (r *AccountsService) Listlinks(merchantId uint64, accountId uint64) *AccountsListlinksCall
- func (r *AccountsService) Update(merchantId uint64, accountId uint64, account *Account) *AccountsUpdateCall
- func (r *AccountsService) Updatelabels(merchantId uint64, accountId uint64, ...) *AccountsUpdatelabelsCall
- type AccountsUpdateCall
- type AccountsUpdateLabelsRequest
- type AccountsUpdateLabelsResponse
- type AccountsUpdatelabelsCall
- func (c *AccountsUpdatelabelsCall) Context(ctx context.Context) *AccountsUpdatelabelsCall
- func (c *AccountsUpdatelabelsCall) Do(opts ...googleapi.CallOption) (*AccountsUpdateLabelsResponse, error)
- func (c *AccountsUpdatelabelsCall) Fields(s ...googleapi.Field) *AccountsUpdatelabelsCall
- func (c *AccountsUpdatelabelsCall) Header() http.Header
- type AccountstatusesCustomBatchRequest
- type AccountstatusesCustomBatchRequestEntry
- type AccountstatusesCustomBatchResponse
- type AccountstatusesCustomBatchResponseEntry
- type AccountstatusesCustombatchCall
- func (c *AccountstatusesCustombatchCall) Context(ctx context.Context) *AccountstatusesCustombatchCall
- func (c *AccountstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*AccountstatusesCustomBatchResponse, error)
- func (c *AccountstatusesCustombatchCall) Fields(s ...googleapi.Field) *AccountstatusesCustombatchCall
- func (c *AccountstatusesCustombatchCall) Header() http.Header
- type AccountstatusesGetCall
- func (c *AccountstatusesGetCall) Context(ctx context.Context) *AccountstatusesGetCall
- func (c *AccountstatusesGetCall) Destinations(destinations ...string) *AccountstatusesGetCall
- func (c *AccountstatusesGetCall) Do(opts ...googleapi.CallOption) (*AccountStatus, error)
- func (c *AccountstatusesGetCall) Fields(s ...googleapi.Field) *AccountstatusesGetCall
- func (c *AccountstatusesGetCall) Header() http.Header
- func (c *AccountstatusesGetCall) IfNoneMatch(entityTag string) *AccountstatusesGetCall
- type AccountstatusesListCall
- func (c *AccountstatusesListCall) Context(ctx context.Context) *AccountstatusesListCall
- func (c *AccountstatusesListCall) Destinations(destinations ...string) *AccountstatusesListCall
- func (c *AccountstatusesListCall) Do(opts ...googleapi.CallOption) (*AccountstatusesListResponse, error)
- func (c *AccountstatusesListCall) Fields(s ...googleapi.Field) *AccountstatusesListCall
- func (c *AccountstatusesListCall) Header() http.Header
- func (c *AccountstatusesListCall) IfNoneMatch(entityTag string) *AccountstatusesListCall
- func (c *AccountstatusesListCall) MaxResults(maxResults int64) *AccountstatusesListCall
- func (c *AccountstatusesListCall) PageToken(pageToken string) *AccountstatusesListCall
- func (c *AccountstatusesListCall) Pages(ctx context.Context, f func(*AccountstatusesListResponse) error) error
- type AccountstatusesListResponse
- type AccountstatusesService
- func (r *AccountstatusesService) Custombatch(accountstatusescustombatchrequest *AccountstatusesCustomBatchRequest) *AccountstatusesCustombatchCall
- func (r *AccountstatusesService) Get(merchantId uint64, accountId uint64) *AccountstatusesGetCall
- func (r *AccountstatusesService) List(merchantId uint64) *AccountstatusesListCall
- type AccounttaxCustomBatchRequest
- type AccounttaxCustomBatchRequestEntry
- type AccounttaxCustomBatchResponse
- type AccounttaxCustomBatchResponseEntry
- type AccounttaxCustombatchCall
- func (c *AccounttaxCustombatchCall) Context(ctx context.Context) *AccounttaxCustombatchCall
- func (c *AccounttaxCustombatchCall) Do(opts ...googleapi.CallOption) (*AccounttaxCustomBatchResponse, error)
- func (c *AccounttaxCustombatchCall) Fields(s ...googleapi.Field) *AccounttaxCustombatchCall
- func (c *AccounttaxCustombatchCall) Header() http.Header
- type AccounttaxGetCall
- func (c *AccounttaxGetCall) Context(ctx context.Context) *AccounttaxGetCall
- func (c *AccounttaxGetCall) Do(opts ...googleapi.CallOption) (*AccountTax, error)
- func (c *AccounttaxGetCall) Fields(s ...googleapi.Field) *AccounttaxGetCall
- func (c *AccounttaxGetCall) Header() http.Header
- func (c *AccounttaxGetCall) IfNoneMatch(entityTag string) *AccounttaxGetCall
- type AccounttaxListCall
- func (c *AccounttaxListCall) Context(ctx context.Context) *AccounttaxListCall
- func (c *AccounttaxListCall) Do(opts ...googleapi.CallOption) (*AccounttaxListResponse, error)
- func (c *AccounttaxListCall) Fields(s ...googleapi.Field) *AccounttaxListCall
- func (c *AccounttaxListCall) Header() http.Header
- func (c *AccounttaxListCall) IfNoneMatch(entityTag string) *AccounttaxListCall
- func (c *AccounttaxListCall) MaxResults(maxResults int64) *AccounttaxListCall
- func (c *AccounttaxListCall) PageToken(pageToken string) *AccounttaxListCall
- func (c *AccounttaxListCall) Pages(ctx context.Context, f func(*AccounttaxListResponse) error) error
- type AccounttaxListResponse
- type AccounttaxService
- func (r *AccounttaxService) Custombatch(accounttaxcustombatchrequest *AccounttaxCustomBatchRequest) *AccounttaxCustombatchCall
- func (r *AccounttaxService) Get(merchantId uint64, accountId uint64) *AccounttaxGetCall
- func (r *AccounttaxService) List(merchantId uint64) *AccounttaxListCall
- func (r *AccounttaxService) Update(merchantId uint64, accountId uint64, accounttax *AccountTax) *AccounttaxUpdateCall
- type AccounttaxUpdateCall
- func (c *AccounttaxUpdateCall) Context(ctx context.Context) *AccounttaxUpdateCall
- func (c *AccounttaxUpdateCall) Do(opts ...googleapi.CallOption) (*AccountTax, error)
- func (c *AccounttaxUpdateCall) Fields(s ...googleapi.Field) *AccounttaxUpdateCall
- func (c *AccounttaxUpdateCall) Header() http.Header
- type Amount
- type BusinessDayConfig
- type BuyOnGoogleProgramStatus
- type BuyongoogleprogramsGetCall
- func (c *BuyongoogleprogramsGetCall) Context(ctx context.Context) *BuyongoogleprogramsGetCall
- func (c *BuyongoogleprogramsGetCall) Do(opts ...googleapi.CallOption) (*BuyOnGoogleProgramStatus, error)
- func (c *BuyongoogleprogramsGetCall) Fields(s ...googleapi.Field) *BuyongoogleprogramsGetCall
- func (c *BuyongoogleprogramsGetCall) Header() http.Header
- func (c *BuyongoogleprogramsGetCall) IfNoneMatch(entityTag string) *BuyongoogleprogramsGetCall
- type BuyongoogleprogramsOnboardCall
- func (c *BuyongoogleprogramsOnboardCall) Context(ctx context.Context) *BuyongoogleprogramsOnboardCall
- func (c *BuyongoogleprogramsOnboardCall) Do(opts ...googleapi.CallOption) error
- func (c *BuyongoogleprogramsOnboardCall) Fields(s ...googleapi.Field) *BuyongoogleprogramsOnboardCall
- func (c *BuyongoogleprogramsOnboardCall) Header() http.Header
- type BuyongoogleprogramsService
- type CarrierRate
- type CarriersCarrier
- type Collection
- type CollectionFeaturedProduct
- type CollectionStatus
- type CollectionStatusDestinationStatus
- type CollectionStatusItemLevelIssue
- type CollectionsCreateCall
- func (c *CollectionsCreateCall) Context(ctx context.Context) *CollectionsCreateCall
- func (c *CollectionsCreateCall) Do(opts ...googleapi.CallOption) (*Collection, error)
- func (c *CollectionsCreateCall) Fields(s ...googleapi.Field) *CollectionsCreateCall
- func (c *CollectionsCreateCall) Header() http.Header
- type CollectionsDeleteCall
- type CollectionsGetCall
- func (c *CollectionsGetCall) Context(ctx context.Context) *CollectionsGetCall
- func (c *CollectionsGetCall) Do(opts ...googleapi.CallOption) (*Collection, error)
- func (c *CollectionsGetCall) Fields(s ...googleapi.Field) *CollectionsGetCall
- func (c *CollectionsGetCall) Header() http.Header
- func (c *CollectionsGetCall) IfNoneMatch(entityTag string) *CollectionsGetCall
- type CollectionsListCall
- func (c *CollectionsListCall) Context(ctx context.Context) *CollectionsListCall
- func (c *CollectionsListCall) Do(opts ...googleapi.CallOption) (*ListCollectionsResponse, error)
- func (c *CollectionsListCall) Fields(s ...googleapi.Field) *CollectionsListCall
- func (c *CollectionsListCall) Header() http.Header
- func (c *CollectionsListCall) IfNoneMatch(entityTag string) *CollectionsListCall
- func (c *CollectionsListCall) PageSize(pageSize int64) *CollectionsListCall
- func (c *CollectionsListCall) PageToken(pageToken string) *CollectionsListCall
- func (c *CollectionsListCall) Pages(ctx context.Context, f func(*ListCollectionsResponse) error) error
- type CollectionsService
- func (r *CollectionsService) Create(merchantId int64, collection *Collection) *CollectionsCreateCall
- func (r *CollectionsService) Delete(merchantId int64, collectionId string) *CollectionsDeleteCall
- func (r *CollectionsService) Get(merchantId int64, collectionId string) *CollectionsGetCall
- func (r *CollectionsService) List(merchantId int64) *CollectionsListCall
- type CollectionstatusesGetCall
- func (c *CollectionstatusesGetCall) Context(ctx context.Context) *CollectionstatusesGetCall
- func (c *CollectionstatusesGetCall) Do(opts ...googleapi.CallOption) (*CollectionStatus, error)
- func (c *CollectionstatusesGetCall) Fields(s ...googleapi.Field) *CollectionstatusesGetCall
- func (c *CollectionstatusesGetCall) Header() http.Header
- func (c *CollectionstatusesGetCall) IfNoneMatch(entityTag string) *CollectionstatusesGetCall
- type CollectionstatusesListCall
- func (c *CollectionstatusesListCall) Context(ctx context.Context) *CollectionstatusesListCall
- func (c *CollectionstatusesListCall) Do(opts ...googleapi.CallOption) (*ListCollectionStatusesResponse, error)
- func (c *CollectionstatusesListCall) Fields(s ...googleapi.Field) *CollectionstatusesListCall
- func (c *CollectionstatusesListCall) Header() http.Header
- func (c *CollectionstatusesListCall) IfNoneMatch(entityTag string) *CollectionstatusesListCall
- func (c *CollectionstatusesListCall) PageSize(pageSize int64) *CollectionstatusesListCall
- func (c *CollectionstatusesListCall) PageToken(pageToken string) *CollectionstatusesListCall
- func (c *CollectionstatusesListCall) Pages(ctx context.Context, f func(*ListCollectionStatusesResponse) error) error
- type CollectionstatusesService
- type Css
- type CssesGetCall
- func (c *CssesGetCall) Context(ctx context.Context) *CssesGetCall
- func (c *CssesGetCall) Do(opts ...googleapi.CallOption) (*Css, error)
- func (c *CssesGetCall) Fields(s ...googleapi.Field) *CssesGetCall
- func (c *CssesGetCall) Header() http.Header
- func (c *CssesGetCall) IfNoneMatch(entityTag string) *CssesGetCall
- type CssesListCall
- func (c *CssesListCall) Context(ctx context.Context) *CssesListCall
- func (c *CssesListCall) Do(opts ...googleapi.CallOption) (*ListCssesResponse, error)
- func (c *CssesListCall) Fields(s ...googleapi.Field) *CssesListCall
- func (c *CssesListCall) Header() http.Header
- func (c *CssesListCall) IfNoneMatch(entityTag string) *CssesListCall
- func (c *CssesListCall) PageSize(pageSize int64) *CssesListCall
- func (c *CssesListCall) PageToken(pageToken string) *CssesListCall
- func (c *CssesListCall) Pages(ctx context.Context, f func(*ListCssesResponse) error) error
- type CssesService
- type CssesUpdatelabelsCall
- type CustomAttribute
- type CustomerReturnReason
- type CutoffTime
- type Datafeed
- type DatafeedFetchSchedule
- type DatafeedFormat
- type DatafeedStatus
- type DatafeedStatusError
- type DatafeedStatusExample
- type DatafeedTarget
- type DatafeedsCustomBatchRequest
- type DatafeedsCustomBatchRequestEntry
- type DatafeedsCustomBatchResponse
- type DatafeedsCustomBatchResponseEntry
- type DatafeedsCustombatchCall
- func (c *DatafeedsCustombatchCall) Context(ctx context.Context) *DatafeedsCustombatchCall
- func (c *DatafeedsCustombatchCall) Do(opts ...googleapi.CallOption) (*DatafeedsCustomBatchResponse, error)
- func (c *DatafeedsCustombatchCall) Fields(s ...googleapi.Field) *DatafeedsCustombatchCall
- func (c *DatafeedsCustombatchCall) Header() http.Header
- type DatafeedsDeleteCall
- type DatafeedsFetchNowResponse
- type DatafeedsFetchnowCall
- func (c *DatafeedsFetchnowCall) Context(ctx context.Context) *DatafeedsFetchnowCall
- func (c *DatafeedsFetchnowCall) Do(opts ...googleapi.CallOption) (*DatafeedsFetchNowResponse, error)
- func (c *DatafeedsFetchnowCall) Fields(s ...googleapi.Field) *DatafeedsFetchnowCall
- func (c *DatafeedsFetchnowCall) Header() http.Header
- type DatafeedsGetCall
- func (c *DatafeedsGetCall) Context(ctx context.Context) *DatafeedsGetCall
- func (c *DatafeedsGetCall) Do(opts ...googleapi.CallOption) (*Datafeed, error)
- func (c *DatafeedsGetCall) Fields(s ...googleapi.Field) *DatafeedsGetCall
- func (c *DatafeedsGetCall) Header() http.Header
- func (c *DatafeedsGetCall) IfNoneMatch(entityTag string) *DatafeedsGetCall
- type DatafeedsInsertCall
- type DatafeedsListCall
- func (c *DatafeedsListCall) Context(ctx context.Context) *DatafeedsListCall
- func (c *DatafeedsListCall) Do(opts ...googleapi.CallOption) (*DatafeedsListResponse, error)
- func (c *DatafeedsListCall) Fields(s ...googleapi.Field) *DatafeedsListCall
- func (c *DatafeedsListCall) Header() http.Header
- func (c *DatafeedsListCall) IfNoneMatch(entityTag string) *DatafeedsListCall
- func (c *DatafeedsListCall) MaxResults(maxResults int64) *DatafeedsListCall
- func (c *DatafeedsListCall) PageToken(pageToken string) *DatafeedsListCall
- func (c *DatafeedsListCall) Pages(ctx context.Context, f func(*DatafeedsListResponse) error) error
- type DatafeedsListResponse
- type DatafeedsService
- func (r *DatafeedsService) Custombatch(datafeedscustombatchrequest *DatafeedsCustomBatchRequest) *DatafeedsCustombatchCall
- func (r *DatafeedsService) Delete(merchantId uint64, datafeedId uint64) *DatafeedsDeleteCall
- func (r *DatafeedsService) Fetchnow(merchantId uint64, datafeedId uint64) *DatafeedsFetchnowCall
- func (r *DatafeedsService) Get(merchantId uint64, datafeedId uint64) *DatafeedsGetCall
- func (r *DatafeedsService) Insert(merchantId uint64, datafeed *Datafeed) *DatafeedsInsertCall
- func (r *DatafeedsService) List(merchantId uint64) *DatafeedsListCall
- func (r *DatafeedsService) Update(merchantId uint64, datafeedId uint64, datafeed *Datafeed) *DatafeedsUpdateCall
- type DatafeedsUpdateCall
- type DatafeedstatusesCustomBatchRequest
- type DatafeedstatusesCustomBatchRequestEntry
- type DatafeedstatusesCustomBatchResponse
- type DatafeedstatusesCustomBatchResponseEntry
- type DatafeedstatusesCustombatchCall
- func (c *DatafeedstatusesCustombatchCall) Context(ctx context.Context) *DatafeedstatusesCustombatchCall
- func (c *DatafeedstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*DatafeedstatusesCustomBatchResponse, error)
- func (c *DatafeedstatusesCustombatchCall) Fields(s ...googleapi.Field) *DatafeedstatusesCustombatchCall
- func (c *DatafeedstatusesCustombatchCall) Header() http.Header
- type DatafeedstatusesGetCall
- func (c *DatafeedstatusesGetCall) Context(ctx context.Context) *DatafeedstatusesGetCall
- func (c *DatafeedstatusesGetCall) Country(country string) *DatafeedstatusesGetCall
- func (c *DatafeedstatusesGetCall) Do(opts ...googleapi.CallOption) (*DatafeedStatus, error)
- func (c *DatafeedstatusesGetCall) Fields(s ...googleapi.Field) *DatafeedstatusesGetCall
- func (c *DatafeedstatusesGetCall) Header() http.Header
- func (c *DatafeedstatusesGetCall) IfNoneMatch(entityTag string) *DatafeedstatusesGetCall
- func (c *DatafeedstatusesGetCall) Language(language string) *DatafeedstatusesGetCall
- type DatafeedstatusesListCall
- func (c *DatafeedstatusesListCall) Context(ctx context.Context) *DatafeedstatusesListCall
- func (c *DatafeedstatusesListCall) Do(opts ...googleapi.CallOption) (*DatafeedstatusesListResponse, error)
- func (c *DatafeedstatusesListCall) Fields(s ...googleapi.Field) *DatafeedstatusesListCall
- func (c *DatafeedstatusesListCall) Header() http.Header
- func (c *DatafeedstatusesListCall) IfNoneMatch(entityTag string) *DatafeedstatusesListCall
- func (c *DatafeedstatusesListCall) MaxResults(maxResults int64) *DatafeedstatusesListCall
- func (c *DatafeedstatusesListCall) PageToken(pageToken string) *DatafeedstatusesListCall
- func (c *DatafeedstatusesListCall) Pages(ctx context.Context, f func(*DatafeedstatusesListResponse) error) error
- type DatafeedstatusesListResponse
- type DatafeedstatusesService
- func (r *DatafeedstatusesService) Custombatch(datafeedstatusescustombatchrequest *DatafeedstatusesCustomBatchRequest) *DatafeedstatusesCustombatchCall
- func (r *DatafeedstatusesService) Get(merchantId uint64, datafeedId uint64) *DatafeedstatusesGetCall
- func (r *DatafeedstatusesService) List(merchantId uint64) *DatafeedstatusesListCall
- type Date
- type DateTime
- type DeliveryTime
- type Error
- type Errors
- type GmbAccounts
- type GmbAccountsGmbAccount
- type Headers
- type HolidayCutoff
- type HolidaysHoliday
- type InapplicabilityDetails
- type Installment
- type InvoiceSummary
- type InvoiceSummaryAdditionalChargeSummary
- type LabelIds
- type LiaAboutPageSettings
- type LiaCountrySettings
- type LiaInventorySettings
- type LiaOnDisplayToOrderSettings
- type LiaPosDataProvider
- type LiaSettings
- type LiasettingsCustomBatchRequest
- type LiasettingsCustomBatchRequestEntry
- type LiasettingsCustomBatchResponse
- type LiasettingsCustomBatchResponseEntry
- type LiasettingsCustombatchCall
- func (c *LiasettingsCustombatchCall) Context(ctx context.Context) *LiasettingsCustombatchCall
- func (c *LiasettingsCustombatchCall) Do(opts ...googleapi.CallOption) (*LiasettingsCustomBatchResponse, error)
- func (c *LiasettingsCustombatchCall) Fields(s ...googleapi.Field) *LiasettingsCustombatchCall
- func (c *LiasettingsCustombatchCall) Header() http.Header
- type LiasettingsGetAccessibleGmbAccountsResponse
- type LiasettingsGetCall
- func (c *LiasettingsGetCall) Context(ctx context.Context) *LiasettingsGetCall
- func (c *LiasettingsGetCall) Do(opts ...googleapi.CallOption) (*LiaSettings, error)
- func (c *LiasettingsGetCall) Fields(s ...googleapi.Field) *LiasettingsGetCall
- func (c *LiasettingsGetCall) Header() http.Header
- func (c *LiasettingsGetCall) IfNoneMatch(entityTag string) *LiasettingsGetCall
- type LiasettingsGetaccessiblegmbaccountsCall
- func (c *LiasettingsGetaccessiblegmbaccountsCall) Context(ctx context.Context) *LiasettingsGetaccessiblegmbaccountsCall
- func (c *LiasettingsGetaccessiblegmbaccountsCall) Do(opts ...googleapi.CallOption) (*LiasettingsGetAccessibleGmbAccountsResponse, error)
- func (c *LiasettingsGetaccessiblegmbaccountsCall) Fields(s ...googleapi.Field) *LiasettingsGetaccessiblegmbaccountsCall
- func (c *LiasettingsGetaccessiblegmbaccountsCall) Header() http.Header
- func (c *LiasettingsGetaccessiblegmbaccountsCall) IfNoneMatch(entityTag string) *LiasettingsGetaccessiblegmbaccountsCall
- type LiasettingsListCall
- func (c *LiasettingsListCall) Context(ctx context.Context) *LiasettingsListCall
- func (c *LiasettingsListCall) Do(opts ...googleapi.CallOption) (*LiasettingsListResponse, error)
- func (c *LiasettingsListCall) Fields(s ...googleapi.Field) *LiasettingsListCall
- func (c *LiasettingsListCall) Header() http.Header
- func (c *LiasettingsListCall) IfNoneMatch(entityTag string) *LiasettingsListCall
- func (c *LiasettingsListCall) MaxResults(maxResults int64) *LiasettingsListCall
- func (c *LiasettingsListCall) PageToken(pageToken string) *LiasettingsListCall
- func (c *LiasettingsListCall) Pages(ctx context.Context, f func(*LiasettingsListResponse) error) error
- type LiasettingsListPosDataProvidersResponse
- type LiasettingsListResponse
- type LiasettingsListposdataprovidersCall
- func (c *LiasettingsListposdataprovidersCall) Context(ctx context.Context) *LiasettingsListposdataprovidersCall
- func (c *LiasettingsListposdataprovidersCall) Do(opts ...googleapi.CallOption) (*LiasettingsListPosDataProvidersResponse, error)
- func (c *LiasettingsListposdataprovidersCall) Fields(s ...googleapi.Field) *LiasettingsListposdataprovidersCall
- func (c *LiasettingsListposdataprovidersCall) Header() http.Header
- func (c *LiasettingsListposdataprovidersCall) IfNoneMatch(entityTag string) *LiasettingsListposdataprovidersCall
- type LiasettingsRequestGmbAccessResponse
- type LiasettingsRequestInventoryVerificationResponse
- type LiasettingsRequestgmbaccessCall
- func (c *LiasettingsRequestgmbaccessCall) Context(ctx context.Context) *LiasettingsRequestgmbaccessCall
- func (c *LiasettingsRequestgmbaccessCall) Do(opts ...googleapi.CallOption) (*LiasettingsRequestGmbAccessResponse, error)
- func (c *LiasettingsRequestgmbaccessCall) Fields(s ...googleapi.Field) *LiasettingsRequestgmbaccessCall
- func (c *LiasettingsRequestgmbaccessCall) Header() http.Header
- type LiasettingsRequestinventoryverificationCall
- func (c *LiasettingsRequestinventoryverificationCall) Context(ctx context.Context) *LiasettingsRequestinventoryverificationCall
- func (c *LiasettingsRequestinventoryverificationCall) Do(opts ...googleapi.CallOption) (*LiasettingsRequestInventoryVerificationResponse, error)
- func (c *LiasettingsRequestinventoryverificationCall) Fields(s ...googleapi.Field) *LiasettingsRequestinventoryverificationCall
- func (c *LiasettingsRequestinventoryverificationCall) Header() http.Header
- type LiasettingsService
- func (r *LiasettingsService) Custombatch(liasettingscustombatchrequest *LiasettingsCustomBatchRequest) *LiasettingsCustombatchCall
- func (r *LiasettingsService) Get(merchantId uint64, accountId uint64) *LiasettingsGetCall
- func (r *LiasettingsService) Getaccessiblegmbaccounts(merchantId uint64, accountId uint64) *LiasettingsGetaccessiblegmbaccountsCall
- func (r *LiasettingsService) List(merchantId uint64) *LiasettingsListCall
- func (r *LiasettingsService) Listposdataproviders() *LiasettingsListposdataprovidersCall
- func (r *LiasettingsService) Requestgmbaccess(merchantId uint64, accountId uint64, gmbEmail string) *LiasettingsRequestgmbaccessCall
- func (r *LiasettingsService) Requestinventoryverification(merchantId uint64, accountId uint64, country string) *LiasettingsRequestinventoryverificationCall
- func (r *LiasettingsService) Setinventoryverificationcontact(merchantId uint64, accountId uint64, country string, language string, ...) *LiasettingsSetinventoryverificationcontactCall
- func (r *LiasettingsService) Setposdataprovider(merchantId uint64, accountId uint64, country string) *LiasettingsSetposdataproviderCall
- func (r *LiasettingsService) Update(merchantId uint64, accountId uint64, liasettings *LiaSettings) *LiasettingsUpdateCall
- type LiasettingsSetInventoryVerificationContactResponse
- type LiasettingsSetPosDataProviderResponse
- type LiasettingsSetinventoryverificationcontactCall
- func (c *LiasettingsSetinventoryverificationcontactCall) Context(ctx context.Context) *LiasettingsSetinventoryverificationcontactCall
- func (c *LiasettingsSetinventoryverificationcontactCall) Do(opts ...googleapi.CallOption) (*LiasettingsSetInventoryVerificationContactResponse, error)
- func (c *LiasettingsSetinventoryverificationcontactCall) Fields(s ...googleapi.Field) *LiasettingsSetinventoryverificationcontactCall
- func (c *LiasettingsSetinventoryverificationcontactCall) Header() http.Header
- type LiasettingsSetposdataproviderCall
- func (c *LiasettingsSetposdataproviderCall) Context(ctx context.Context) *LiasettingsSetposdataproviderCall
- func (c *LiasettingsSetposdataproviderCall) Do(opts ...googleapi.CallOption) (*LiasettingsSetPosDataProviderResponse, error)
- func (c *LiasettingsSetposdataproviderCall) Fields(s ...googleapi.Field) *LiasettingsSetposdataproviderCall
- func (c *LiasettingsSetposdataproviderCall) Header() http.Header
- func (c *LiasettingsSetposdataproviderCall) PosDataProviderId(posDataProviderId uint64) *LiasettingsSetposdataproviderCall
- func (c *LiasettingsSetposdataproviderCall) PosExternalAccountId(posExternalAccountId string) *LiasettingsSetposdataproviderCall
- type LiasettingsUpdateCall
- func (c *LiasettingsUpdateCall) Context(ctx context.Context) *LiasettingsUpdateCall
- func (c *LiasettingsUpdateCall) Do(opts ...googleapi.CallOption) (*LiaSettings, error)
- func (c *LiasettingsUpdateCall) Fields(s ...googleapi.Field) *LiasettingsUpdateCall
- func (c *LiasettingsUpdateCall) Header() http.Header
- type LinkService
- type LinkedAccount
- type ListAccountLabelsResponse
- type ListAccountReturnCarrierResponse
- type ListCollectionStatusesResponse
- type ListCollectionsResponse
- type ListCssesResponse
- type ListRegionsResponse
- type ListRepricingProductReportsResponse
- type ListRepricingRuleReportsResponse
- type ListRepricingRulesResponse
- type ListReturnPolicyOnlineResponse
- type LocalInventory
- type LocalinventoryCustomBatchRequest
- type LocalinventoryCustomBatchRequestEntry
- type LocalinventoryCustomBatchResponse
- type LocalinventoryCustomBatchResponseEntry
- type LocalinventoryCustombatchCall
- func (c *LocalinventoryCustombatchCall) Context(ctx context.Context) *LocalinventoryCustombatchCall
- func (c *LocalinventoryCustombatchCall) Do(opts ...googleapi.CallOption) (*LocalinventoryCustomBatchResponse, error)
- func (c *LocalinventoryCustombatchCall) Fields(s ...googleapi.Field) *LocalinventoryCustombatchCall
- func (c *LocalinventoryCustombatchCall) Header() http.Header
- type LocalinventoryInsertCall
- func (c *LocalinventoryInsertCall) Context(ctx context.Context) *LocalinventoryInsertCall
- func (c *LocalinventoryInsertCall) Do(opts ...googleapi.CallOption) (*LocalInventory, error)
- func (c *LocalinventoryInsertCall) Fields(s ...googleapi.Field) *LocalinventoryInsertCall
- func (c *LocalinventoryInsertCall) Header() http.Header
- type LocalinventoryService
- type LocationIdSet
- type LoyaltyPoints
- type MerchantOrderReturn
- type MerchantOrderReturnItem
- type MerchantRejectionReason
- type Metrics
- type MinimumOrderValueTable
- type MinimumOrderValueTableStoreCodeSetWithMov
- type MonetaryAmount
- type OnboardBuyOnGoogleProgramRequest
- type Order
- type OrderAddress
- type OrderCancellation
- type OrderCustomer
- type OrderCustomerLoyaltyInfo
- type OrderCustomerMarketingRightsInfo
- type OrderDeliveryDetails
- type OrderLineItem
- type OrderLineItemAdjustment
- type OrderLineItemProduct
- type OrderLineItemProductFee
- type OrderLineItemProductVariantAttribute
- type OrderLineItemReturnInfo
- type OrderLineItemShippingDetails
- type OrderLineItemShippingDetailsMethod
- type OrderMerchantProvidedAnnotation
- type OrderOrderAnnotation
- type OrderPickupDetails
- type OrderPickupDetailsCollector
- type OrderPromotion
- type OrderPromotionItem
- type OrderRefund
- type OrderReportDisbursement
- type OrderReportTransaction
- type OrderReturn
- type OrderShipment
- type OrderShipmentLineItemShipment
- type OrderShipmentScheduledDeliveryDetails
- type OrderTrackingSignal
- type OrderTrackingSignalLineItemDetails
- type OrderTrackingSignalShipmentLineItemMapping
- type OrderTrackingSignalShippingInfo
- type OrderinvoicesCreateChargeInvoiceRequest
- type OrderinvoicesCreateChargeInvoiceResponse
- type OrderinvoicesCreateRefundInvoiceRequest
- type OrderinvoicesCreateRefundInvoiceResponse
- type OrderinvoicesCreatechargeinvoiceCall
- func (c *OrderinvoicesCreatechargeinvoiceCall) Context(ctx context.Context) *OrderinvoicesCreatechargeinvoiceCall
- func (c *OrderinvoicesCreatechargeinvoiceCall) Do(opts ...googleapi.CallOption) (*OrderinvoicesCreateChargeInvoiceResponse, error)
- func (c *OrderinvoicesCreatechargeinvoiceCall) Fields(s ...googleapi.Field) *OrderinvoicesCreatechargeinvoiceCall
- func (c *OrderinvoicesCreatechargeinvoiceCall) Header() http.Header
- type OrderinvoicesCreaterefundinvoiceCall
- func (c *OrderinvoicesCreaterefundinvoiceCall) Context(ctx context.Context) *OrderinvoicesCreaterefundinvoiceCall
- func (c *OrderinvoicesCreaterefundinvoiceCall) Do(opts ...googleapi.CallOption) (*OrderinvoicesCreateRefundInvoiceResponse, error)
- func (c *OrderinvoicesCreaterefundinvoiceCall) Fields(s ...googleapi.Field) *OrderinvoicesCreaterefundinvoiceCall
- func (c *OrderinvoicesCreaterefundinvoiceCall) Header() http.Header
- type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption
- type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption
- type OrderinvoicesService
- type OrderreportsListDisbursementsResponse
- type OrderreportsListTransactionsResponse
- type OrderreportsListdisbursementsCall
- func (c *OrderreportsListdisbursementsCall) Context(ctx context.Context) *OrderreportsListdisbursementsCall
- func (c *OrderreportsListdisbursementsCall) DisbursementEndDate(disbursementEndDate string) *OrderreportsListdisbursementsCall
- func (c *OrderreportsListdisbursementsCall) DisbursementStartDate(disbursementStartDate string) *OrderreportsListdisbursementsCall
- func (c *OrderreportsListdisbursementsCall) Do(opts ...googleapi.CallOption) (*OrderreportsListDisbursementsResponse, error)
- func (c *OrderreportsListdisbursementsCall) Fields(s ...googleapi.Field) *OrderreportsListdisbursementsCall
- func (c *OrderreportsListdisbursementsCall) Header() http.Header
- func (c *OrderreportsListdisbursementsCall) IfNoneMatch(entityTag string) *OrderreportsListdisbursementsCall
- func (c *OrderreportsListdisbursementsCall) MaxResults(maxResults int64) *OrderreportsListdisbursementsCall
- func (c *OrderreportsListdisbursementsCall) PageToken(pageToken string) *OrderreportsListdisbursementsCall
- func (c *OrderreportsListdisbursementsCall) Pages(ctx context.Context, f func(*OrderreportsListDisbursementsResponse) error) error
- type OrderreportsListtransactionsCall
- func (c *OrderreportsListtransactionsCall) Context(ctx context.Context) *OrderreportsListtransactionsCall
- func (c *OrderreportsListtransactionsCall) Do(opts ...googleapi.CallOption) (*OrderreportsListTransactionsResponse, error)
- func (c *OrderreportsListtransactionsCall) Fields(s ...googleapi.Field) *OrderreportsListtransactionsCall
- func (c *OrderreportsListtransactionsCall) Header() http.Header
- func (c *OrderreportsListtransactionsCall) IfNoneMatch(entityTag string) *OrderreportsListtransactionsCall
- func (c *OrderreportsListtransactionsCall) MaxResults(maxResults int64) *OrderreportsListtransactionsCall
- func (c *OrderreportsListtransactionsCall) PageToken(pageToken string) *OrderreportsListtransactionsCall
- func (c *OrderreportsListtransactionsCall) Pages(ctx context.Context, f func(*OrderreportsListTransactionsResponse) error) error
- func (c *OrderreportsListtransactionsCall) TransactionEndDate(transactionEndDate string) *OrderreportsListtransactionsCall
- func (c *OrderreportsListtransactionsCall) TransactionStartDate(transactionStartDate string) *OrderreportsListtransactionsCall
- type OrderreportsService
- type OrderreturnsAcknowledgeCall
- func (c *OrderreturnsAcknowledgeCall) Context(ctx context.Context) *OrderreturnsAcknowledgeCall
- func (c *OrderreturnsAcknowledgeCall) Do(opts ...googleapi.CallOption) (*OrderreturnsAcknowledgeResponse, error)
- func (c *OrderreturnsAcknowledgeCall) Fields(s ...googleapi.Field) *OrderreturnsAcknowledgeCall
- func (c *OrderreturnsAcknowledgeCall) Header() http.Header
- type OrderreturnsAcknowledgeRequest
- type OrderreturnsAcknowledgeResponse
- type OrderreturnsCreateOrderReturnRequest
- type OrderreturnsCreateOrderReturnResponse
- type OrderreturnsCreateorderreturnCall
- func (c *OrderreturnsCreateorderreturnCall) Context(ctx context.Context) *OrderreturnsCreateorderreturnCall
- func (c *OrderreturnsCreateorderreturnCall) Do(opts ...googleapi.CallOption) (*OrderreturnsCreateOrderReturnResponse, error)
- func (c *OrderreturnsCreateorderreturnCall) Fields(s ...googleapi.Field) *OrderreturnsCreateorderreturnCall
- func (c *OrderreturnsCreateorderreturnCall) Header() http.Header
- type OrderreturnsGetCall
- func (c *OrderreturnsGetCall) Context(ctx context.Context) *OrderreturnsGetCall
- func (c *OrderreturnsGetCall) Do(opts ...googleapi.CallOption) (*MerchantOrderReturn, error)
- func (c *OrderreturnsGetCall) Fields(s ...googleapi.Field) *OrderreturnsGetCall
- func (c *OrderreturnsGetCall) Header() http.Header
- func (c *OrderreturnsGetCall) IfNoneMatch(entityTag string) *OrderreturnsGetCall
- type OrderreturnsLineItem
- type OrderreturnsListCall
- func (c *OrderreturnsListCall) Acknowledged(acknowledged bool) *OrderreturnsListCall
- func (c *OrderreturnsListCall) Context(ctx context.Context) *OrderreturnsListCall
- func (c *OrderreturnsListCall) CreatedEndDate(createdEndDate string) *OrderreturnsListCall
- func (c *OrderreturnsListCall) CreatedStartDate(createdStartDate string) *OrderreturnsListCall
- func (c *OrderreturnsListCall) Do(opts ...googleapi.CallOption) (*OrderreturnsListResponse, error)
- func (c *OrderreturnsListCall) Fields(s ...googleapi.Field) *OrderreturnsListCall
- func (c *OrderreturnsListCall) GoogleOrderIds(googleOrderIds ...string) *OrderreturnsListCall
- func (c *OrderreturnsListCall) Header() http.Header
- func (c *OrderreturnsListCall) IfNoneMatch(entityTag string) *OrderreturnsListCall
- func (c *OrderreturnsListCall) MaxResults(maxResults int64) *OrderreturnsListCall
- func (c *OrderreturnsListCall) OrderBy(orderBy string) *OrderreturnsListCall
- func (c *OrderreturnsListCall) PageToken(pageToken string) *OrderreturnsListCall
- func (c *OrderreturnsListCall) Pages(ctx context.Context, f func(*OrderreturnsListResponse) error) error
- func (c *OrderreturnsListCall) ShipmentStates(shipmentStates ...string) *OrderreturnsListCall
- func (c *OrderreturnsListCall) ShipmentStatus(shipmentStatus ...string) *OrderreturnsListCall
- func (c *OrderreturnsListCall) ShipmentTrackingNumbers(shipmentTrackingNumbers ...string) *OrderreturnsListCall
- func (c *OrderreturnsListCall) ShipmentTypes(shipmentTypes ...string) *OrderreturnsListCall
- type OrderreturnsListResponse
- type OrderreturnsPartialRefund
- type OrderreturnsProcessCall
- func (c *OrderreturnsProcessCall) Context(ctx context.Context) *OrderreturnsProcessCall
- func (c *OrderreturnsProcessCall) Do(opts ...googleapi.CallOption) (*OrderreturnsProcessResponse, error)
- func (c *OrderreturnsProcessCall) Fields(s ...googleapi.Field) *OrderreturnsProcessCall
- func (c *OrderreturnsProcessCall) Header() http.Header
- type OrderreturnsProcessRequest
- type OrderreturnsProcessResponse
- type OrderreturnsRefundOperation
- type OrderreturnsRejectOperation
- type OrderreturnsReturnItem
- type OrderreturnsService
- func (r *OrderreturnsService) Acknowledge(merchantId uint64, returnId string, ...) *OrderreturnsAcknowledgeCall
- func (r *OrderreturnsService) Createorderreturn(merchantId uint64, ...) *OrderreturnsCreateorderreturnCall
- func (r *OrderreturnsService) Get(merchantId uint64, returnId string) *OrderreturnsGetCall
- func (r *OrderreturnsService) List(merchantId uint64) *OrderreturnsListCall
- func (r *OrderreturnsService) Process(merchantId uint64, returnId string, ...) *OrderreturnsProcessCall
- type OrdersAcknowledgeCall
- func (c *OrdersAcknowledgeCall) Context(ctx context.Context) *OrdersAcknowledgeCall
- func (c *OrdersAcknowledgeCall) Do(opts ...googleapi.CallOption) (*OrdersAcknowledgeResponse, error)
- func (c *OrdersAcknowledgeCall) Fields(s ...googleapi.Field) *OrdersAcknowledgeCall
- func (c *OrdersAcknowledgeCall) Header() http.Header
- type OrdersAcknowledgeRequest
- type OrdersAcknowledgeResponse
- type OrdersAdvanceTestOrderResponse
- type OrdersAdvancetestorderCall
- func (c *OrdersAdvancetestorderCall) Context(ctx context.Context) *OrdersAdvancetestorderCall
- func (c *OrdersAdvancetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersAdvanceTestOrderResponse, error)
- func (c *OrdersAdvancetestorderCall) Fields(s ...googleapi.Field) *OrdersAdvancetestorderCall
- func (c *OrdersAdvancetestorderCall) Header() http.Header
- type OrdersCancelCall
- type OrdersCancelLineItemRequest
- type OrdersCancelLineItemResponse
- type OrdersCancelRequest
- type OrdersCancelResponse
- type OrdersCancelTestOrderByCustomerRequest
- type OrdersCancelTestOrderByCustomerResponse
- type OrdersCancellineitemCall
- func (c *OrdersCancellineitemCall) Context(ctx context.Context) *OrdersCancellineitemCall
- func (c *OrdersCancellineitemCall) Do(opts ...googleapi.CallOption) (*OrdersCancelLineItemResponse, error)
- func (c *OrdersCancellineitemCall) Fields(s ...googleapi.Field) *OrdersCancellineitemCall
- func (c *OrdersCancellineitemCall) Header() http.Header
- type OrdersCanceltestorderbycustomerCall
- func (c *OrdersCanceltestorderbycustomerCall) Context(ctx context.Context) *OrdersCanceltestorderbycustomerCall
- func (c *OrdersCanceltestorderbycustomerCall) Do(opts ...googleapi.CallOption) (*OrdersCancelTestOrderByCustomerResponse, error)
- func (c *OrdersCanceltestorderbycustomerCall) Fields(s ...googleapi.Field) *OrdersCanceltestorderbycustomerCall
- func (c *OrdersCanceltestorderbycustomerCall) Header() http.Header
- type OrdersCreateTestOrderRequest
- type OrdersCreateTestOrderResponse
- type OrdersCreateTestReturnRequest
- type OrdersCreateTestReturnResponse
- type OrdersCreatetestorderCall
- func (c *OrdersCreatetestorderCall) Context(ctx context.Context) *OrdersCreatetestorderCall
- func (c *OrdersCreatetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersCreateTestOrderResponse, error)
- func (c *OrdersCreatetestorderCall) Fields(s ...googleapi.Field) *OrdersCreatetestorderCall
- func (c *OrdersCreatetestorderCall) Header() http.Header
- type OrdersCreatetestreturnCall
- func (c *OrdersCreatetestreturnCall) Context(ctx context.Context) *OrdersCreatetestreturnCall
- func (c *OrdersCreatetestreturnCall) Do(opts ...googleapi.CallOption) (*OrdersCreateTestReturnResponse, error)
- func (c *OrdersCreatetestreturnCall) Fields(s ...googleapi.Field) *OrdersCreatetestreturnCall
- func (c *OrdersCreatetestreturnCall) Header() http.Header
- type OrdersCustomBatchRequestEntryCreateTestReturnReturnItem
- type OrdersCustomBatchRequestEntryRefundItemItem
- type OrdersCustomBatchRequestEntryRefundItemShipping
- type OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo
- type OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails
- type OrdersGetByMerchantOrderIdResponse
- type OrdersGetCall
- func (c *OrdersGetCall) Context(ctx context.Context) *OrdersGetCall
- func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error)
- func (c *OrdersGetCall) Fields(s ...googleapi.Field) *OrdersGetCall
- func (c *OrdersGetCall) Header() http.Header
- func (c *OrdersGetCall) IfNoneMatch(entityTag string) *OrdersGetCall
- type OrdersGetTestOrderTemplateResponse
- type OrdersGetbymerchantorderidCall
- func (c *OrdersGetbymerchantorderidCall) Context(ctx context.Context) *OrdersGetbymerchantorderidCall
- func (c *OrdersGetbymerchantorderidCall) Do(opts ...googleapi.CallOption) (*OrdersGetByMerchantOrderIdResponse, error)
- func (c *OrdersGetbymerchantorderidCall) Fields(s ...googleapi.Field) *OrdersGetbymerchantorderidCall
- func (c *OrdersGetbymerchantorderidCall) Header() http.Header
- func (c *OrdersGetbymerchantorderidCall) IfNoneMatch(entityTag string) *OrdersGetbymerchantorderidCall
- type OrdersGettestordertemplateCall
- func (c *OrdersGettestordertemplateCall) Context(ctx context.Context) *OrdersGettestordertemplateCall
- func (c *OrdersGettestordertemplateCall) Country(country string) *OrdersGettestordertemplateCall
- func (c *OrdersGettestordertemplateCall) Do(opts ...googleapi.CallOption) (*OrdersGetTestOrderTemplateResponse, error)
- func (c *OrdersGettestordertemplateCall) Fields(s ...googleapi.Field) *OrdersGettestordertemplateCall
- func (c *OrdersGettestordertemplateCall) Header() http.Header
- func (c *OrdersGettestordertemplateCall) IfNoneMatch(entityTag string) *OrdersGettestordertemplateCall
- type OrdersInStoreRefundLineItemRequest
- type OrdersInStoreRefundLineItemResponse
- type OrdersInstorerefundlineitemCall
- func (c *OrdersInstorerefundlineitemCall) Context(ctx context.Context) *OrdersInstorerefundlineitemCall
- func (c *OrdersInstorerefundlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersInStoreRefundLineItemResponse, error)
- func (c *OrdersInstorerefundlineitemCall) Fields(s ...googleapi.Field) *OrdersInstorerefundlineitemCall
- func (c *OrdersInstorerefundlineitemCall) Header() http.Header
- type OrdersListCall
- func (c *OrdersListCall) Acknowledged(acknowledged bool) *OrdersListCall
- func (c *OrdersListCall) Context(ctx context.Context) *OrdersListCall
- func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, error)
- func (c *OrdersListCall) Fields(s ...googleapi.Field) *OrdersListCall
- func (c *OrdersListCall) Header() http.Header
- func (c *OrdersListCall) IfNoneMatch(entityTag string) *OrdersListCall
- func (c *OrdersListCall) MaxResults(maxResults int64) *OrdersListCall
- func (c *OrdersListCall) OrderBy(orderBy string) *OrdersListCall
- func (c *OrdersListCall) PageToken(pageToken string) *OrdersListCall
- func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) error) error
- func (c *OrdersListCall) PlacedDateEnd(placedDateEnd string) *OrdersListCall
- func (c *OrdersListCall) PlacedDateStart(placedDateStart string) *OrdersListCall
- func (c *OrdersListCall) Statuses(statuses ...string) *OrdersListCall
- type OrdersListResponse
- type OrdersRefundItemRequest
- type OrdersRefundItemResponse
- type OrdersRefundOrderRequest
- type OrdersRefundOrderResponse
- type OrdersRefunditemCall
- func (c *OrdersRefunditemCall) Context(ctx context.Context) *OrdersRefunditemCall
- func (c *OrdersRefunditemCall) Do(opts ...googleapi.CallOption) (*OrdersRefundItemResponse, error)
- func (c *OrdersRefunditemCall) Fields(s ...googleapi.Field) *OrdersRefunditemCall
- func (c *OrdersRefunditemCall) Header() http.Header
- type OrdersRefundorderCall
- func (c *OrdersRefundorderCall) Context(ctx context.Context) *OrdersRefundorderCall
- func (c *OrdersRefundorderCall) Do(opts ...googleapi.CallOption) (*OrdersRefundOrderResponse, error)
- func (c *OrdersRefundorderCall) Fields(s ...googleapi.Field) *OrdersRefundorderCall
- func (c *OrdersRefundorderCall) Header() http.Header
- type OrdersRejectReturnLineItemRequest
- type OrdersRejectReturnLineItemResponse
- type OrdersRejectreturnlineitemCall
- func (c *OrdersRejectreturnlineitemCall) Context(ctx context.Context) *OrdersRejectreturnlineitemCall
- func (c *OrdersRejectreturnlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersRejectReturnLineItemResponse, error)
- func (c *OrdersRejectreturnlineitemCall) Fields(s ...googleapi.Field) *OrdersRejectreturnlineitemCall
- func (c *OrdersRejectreturnlineitemCall) Header() http.Header
- type OrdersReturnRefundLineItemRequest
- type OrdersReturnRefundLineItemResponse
- type OrdersReturnrefundlineitemCall
- func (c *OrdersReturnrefundlineitemCall) Context(ctx context.Context) *OrdersReturnrefundlineitemCall
- func (c *OrdersReturnrefundlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersReturnRefundLineItemResponse, error)
- func (c *OrdersReturnrefundlineitemCall) Fields(s ...googleapi.Field) *OrdersReturnrefundlineitemCall
- func (c *OrdersReturnrefundlineitemCall) Header() http.Header
- type OrdersService
- func (r *OrdersService) Acknowledge(merchantId uint64, orderId string, ...) *OrdersAcknowledgeCall
- func (r *OrdersService) Advancetestorder(merchantId uint64, orderId string) *OrdersAdvancetestorderCall
- func (r *OrdersService) Cancel(merchantId uint64, orderId string, orderscancelrequest *OrdersCancelRequest) *OrdersCancelCall
- func (r *OrdersService) Cancellineitem(merchantId uint64, orderId string, ...) *OrdersCancellineitemCall
- func (r *OrdersService) Canceltestorderbycustomer(merchantId uint64, orderId string, ...) *OrdersCanceltestorderbycustomerCall
- func (r *OrdersService) Createtestorder(merchantId uint64, orderscreatetestorderrequest *OrdersCreateTestOrderRequest) *OrdersCreatetestorderCall
- func (r *OrdersService) Createtestreturn(merchantId uint64, orderId string, ...) *OrdersCreatetestreturnCall
- func (r *OrdersService) Get(merchantId uint64, orderId string) *OrdersGetCall
- func (r *OrdersService) Getbymerchantorderid(merchantId uint64, merchantOrderId string) *OrdersGetbymerchantorderidCall
- func (r *OrdersService) Gettestordertemplate(merchantId uint64, templateName string) *OrdersGettestordertemplateCall
- func (r *OrdersService) Instorerefundlineitem(merchantId uint64, orderId string, ...) *OrdersInstorerefundlineitemCall
- func (r *OrdersService) List(merchantId uint64) *OrdersListCall
- func (r *OrdersService) Refunditem(merchantId uint64, orderId string, ...) *OrdersRefunditemCall
- func (r *OrdersService) Refundorder(merchantId uint64, orderId string, ...) *OrdersRefundorderCall
- func (r *OrdersService) Rejectreturnlineitem(merchantId uint64, orderId string, ...) *OrdersRejectreturnlineitemCall
- func (r *OrdersService) Returnrefundlineitem(merchantId uint64, orderId string, ...) *OrdersReturnrefundlineitemCall
- func (r *OrdersService) Setlineitemmetadata(merchantId uint64, orderId string, ...) *OrdersSetlineitemmetadataCall
- func (r *OrdersService) Shiplineitems(merchantId uint64, orderId string, ...) *OrdersShiplineitemsCall
- func (r *OrdersService) Updatelineitemshippingdetails(merchantId uint64, orderId string, ...) *OrdersUpdatelineitemshippingdetailsCall
- func (r *OrdersService) Updatemerchantorderid(merchantId uint64, orderId string, ...) *OrdersUpdatemerchantorderidCall
- func (r *OrdersService) Updateshipment(merchantId uint64, orderId string, ...) *OrdersUpdateshipmentCall
- type OrdersSetLineItemMetadataRequest
- type OrdersSetLineItemMetadataResponse
- type OrdersSetlineitemmetadataCall
- func (c *OrdersSetlineitemmetadataCall) Context(ctx context.Context) *OrdersSetlineitemmetadataCall
- func (c *OrdersSetlineitemmetadataCall) Do(opts ...googleapi.CallOption) (*OrdersSetLineItemMetadataResponse, error)
- func (c *OrdersSetlineitemmetadataCall) Fields(s ...googleapi.Field) *OrdersSetlineitemmetadataCall
- func (c *OrdersSetlineitemmetadataCall) Header() http.Header
- type OrdersShipLineItemsRequest
- type OrdersShipLineItemsResponse
- type OrdersShiplineitemsCall
- func (c *OrdersShiplineitemsCall) Context(ctx context.Context) *OrdersShiplineitemsCall
- func (c *OrdersShiplineitemsCall) Do(opts ...googleapi.CallOption) (*OrdersShipLineItemsResponse, error)
- func (c *OrdersShiplineitemsCall) Fields(s ...googleapi.Field) *OrdersShiplineitemsCall
- func (c *OrdersShiplineitemsCall) Header() http.Header
- type OrdersUpdateLineItemShippingDetailsRequest
- type OrdersUpdateLineItemShippingDetailsResponse
- type OrdersUpdateMerchantOrderIdRequest
- type OrdersUpdateMerchantOrderIdResponse
- type OrdersUpdateShipmentRequest
- type OrdersUpdateShipmentResponse
- type OrdersUpdatelineitemshippingdetailsCall
- func (c *OrdersUpdatelineitemshippingdetailsCall) Context(ctx context.Context) *OrdersUpdatelineitemshippingdetailsCall
- func (c *OrdersUpdatelineitemshippingdetailsCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateLineItemShippingDetailsResponse, error)
- func (c *OrdersUpdatelineitemshippingdetailsCall) Fields(s ...googleapi.Field) *OrdersUpdatelineitemshippingdetailsCall
- func (c *OrdersUpdatelineitemshippingdetailsCall) Header() http.Header
- type OrdersUpdatemerchantorderidCall
- func (c *OrdersUpdatemerchantorderidCall) Context(ctx context.Context) *OrdersUpdatemerchantorderidCall
- func (c *OrdersUpdatemerchantorderidCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateMerchantOrderIdResponse, error)
- func (c *OrdersUpdatemerchantorderidCall) Fields(s ...googleapi.Field) *OrdersUpdatemerchantorderidCall
- func (c *OrdersUpdatemerchantorderidCall) Header() http.Header
- type OrdersUpdateshipmentCall
- func (c *OrdersUpdateshipmentCall) Context(ctx context.Context) *OrdersUpdateshipmentCall
- func (c *OrdersUpdateshipmentCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateShipmentResponse, error)
- func (c *OrdersUpdateshipmentCall) Fields(s ...googleapi.Field) *OrdersUpdateshipmentCall
- func (c *OrdersUpdateshipmentCall) Header() http.Header
- type OrdertrackingsignalsCreateCall
- func (c *OrdertrackingsignalsCreateCall) Context(ctx context.Context) *OrdertrackingsignalsCreateCall
- func (c *OrdertrackingsignalsCreateCall) Do(opts ...googleapi.CallOption) (*OrderTrackingSignal, error)
- func (c *OrdertrackingsignalsCreateCall) Fields(s ...googleapi.Field) *OrdertrackingsignalsCreateCall
- func (c *OrdertrackingsignalsCreateCall) Header() http.Header
- type OrdertrackingsignalsService
- type PickupCarrierService
- type PickupServicesPickupService
- type PosCustomBatchRequest
- type PosCustomBatchRequestEntry
- type PosCustomBatchResponse
- type PosCustomBatchResponseEntry
- type PosCustombatchCall
- func (c *PosCustombatchCall) Context(ctx context.Context) *PosCustombatchCall
- func (c *PosCustombatchCall) Do(opts ...googleapi.CallOption) (*PosCustomBatchResponse, error)
- func (c *PosCustombatchCall) Fields(s ...googleapi.Field) *PosCustombatchCall
- func (c *PosCustombatchCall) Header() http.Header
- type PosDataProviders
- type PosDataProvidersPosDataProvider
- type PosDeleteCall
- type PosGetCall
- func (c *PosGetCall) Context(ctx context.Context) *PosGetCall
- func (c *PosGetCall) Do(opts ...googleapi.CallOption) (*PosStore, error)
- func (c *PosGetCall) Fields(s ...googleapi.Field) *PosGetCall
- func (c *PosGetCall) Header() http.Header
- func (c *PosGetCall) IfNoneMatch(entityTag string) *PosGetCall
- type PosInsertCall
- type PosInventory
- type PosInventoryCall
- type PosInventoryRequest
- type PosInventoryResponse
- type PosListCall
- func (c *PosListCall) Context(ctx context.Context) *PosListCall
- func (c *PosListCall) Do(opts ...googleapi.CallOption) (*PosListResponse, error)
- func (c *PosListCall) Fields(s ...googleapi.Field) *PosListCall
- func (c *PosListCall) Header() http.Header
- func (c *PosListCall) IfNoneMatch(entityTag string) *PosListCall
- type PosListResponse
- type PosSale
- type PosSaleCall
- type PosSaleRequest
- type PosSaleResponse
- type PosService
- func (r *PosService) Custombatch(poscustombatchrequest *PosCustomBatchRequest) *PosCustombatchCall
- func (r *PosService) Delete(merchantId uint64, targetMerchantId uint64, storeCode string) *PosDeleteCall
- func (r *PosService) Get(merchantId uint64, targetMerchantId uint64, storeCode string) *PosGetCall
- func (r *PosService) Insert(merchantId uint64, targetMerchantId uint64, posstore *PosStore) *PosInsertCall
- func (r *PosService) Inventory(merchantId uint64, targetMerchantId uint64, ...) *PosInventoryCall
- func (r *PosService) List(merchantId uint64, targetMerchantId uint64) *PosListCall
- func (r *PosService) Sale(merchantId uint64, targetMerchantId uint64, possalerequest *PosSaleRequest) *PosSaleCall
- type PosStore
- type PostalCodeGroup
- type PostalCodeRange
- type Price
- type PriceAmount
- type Product
- type ProductAmount
- type ProductProductDetail
- type ProductShipping
- type ProductShippingDimension
- type ProductShippingWeight
- type ProductStatus
- type ProductStatusDestinationStatus
- type ProductStatusItemLevelIssue
- type ProductSubscriptionCost
- type ProductTax
- type ProductUnitPricingBaseMeasure
- type ProductUnitPricingMeasure
- type ProductsCustomBatchRequest
- type ProductsCustomBatchRequestEntry
- type ProductsCustomBatchResponse
- type ProductsCustomBatchResponseEntry
- type ProductsCustombatchCall
- func (c *ProductsCustombatchCall) Context(ctx context.Context) *ProductsCustombatchCall
- func (c *ProductsCustombatchCall) Do(opts ...googleapi.CallOption) (*ProductsCustomBatchResponse, error)
- func (c *ProductsCustombatchCall) Fields(s ...googleapi.Field) *ProductsCustombatchCall
- func (c *ProductsCustombatchCall) Header() http.Header
- type ProductsDeleteCall
- func (c *ProductsDeleteCall) Context(ctx context.Context) *ProductsDeleteCall
- func (c *ProductsDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *ProductsDeleteCall) FeedId(feedId uint64) *ProductsDeleteCall
- func (c *ProductsDeleteCall) Fields(s ...googleapi.Field) *ProductsDeleteCall
- func (c *ProductsDeleteCall) Header() http.Header
- type ProductsGetCall
- func (c *ProductsGetCall) Context(ctx context.Context) *ProductsGetCall
- func (c *ProductsGetCall) Do(opts ...googleapi.CallOption) (*Product, error)
- func (c *ProductsGetCall) Fields(s ...googleapi.Field) *ProductsGetCall
- func (c *ProductsGetCall) Header() http.Header
- func (c *ProductsGetCall) IfNoneMatch(entityTag string) *ProductsGetCall
- type ProductsInsertCall
- func (c *ProductsInsertCall) Context(ctx context.Context) *ProductsInsertCall
- func (c *ProductsInsertCall) Do(opts ...googleapi.CallOption) (*Product, error)
- func (c *ProductsInsertCall) FeedId(feedId uint64) *ProductsInsertCall
- func (c *ProductsInsertCall) Fields(s ...googleapi.Field) *ProductsInsertCall
- func (c *ProductsInsertCall) Header() http.Header
- type ProductsListCall
- func (c *ProductsListCall) Context(ctx context.Context) *ProductsListCall
- func (c *ProductsListCall) Do(opts ...googleapi.CallOption) (*ProductsListResponse, error)
- func (c *ProductsListCall) Fields(s ...googleapi.Field) *ProductsListCall
- func (c *ProductsListCall) Header() http.Header
- func (c *ProductsListCall) IfNoneMatch(entityTag string) *ProductsListCall
- func (c *ProductsListCall) MaxResults(maxResults int64) *ProductsListCall
- func (c *ProductsListCall) PageToken(pageToken string) *ProductsListCall
- func (c *ProductsListCall) Pages(ctx context.Context, f func(*ProductsListResponse) error) error
- type ProductsListResponse
- type ProductsService
- func (r *ProductsService) Custombatch(productscustombatchrequest *ProductsCustomBatchRequest) *ProductsCustombatchCall
- func (r *ProductsService) Delete(merchantId uint64, productId string) *ProductsDeleteCall
- func (r *ProductsService) Get(merchantId uint64, productId string) *ProductsGetCall
- func (r *ProductsService) Insert(merchantId uint64, product *Product) *ProductsInsertCall
- func (r *ProductsService) List(merchantId uint64) *ProductsListCall
- type ProductstatusesCustomBatchRequest
- type ProductstatusesCustomBatchRequestEntry
- type ProductstatusesCustomBatchResponse
- type ProductstatusesCustomBatchResponseEntry
- type ProductstatusesCustombatchCall
- func (c *ProductstatusesCustombatchCall) Context(ctx context.Context) *ProductstatusesCustombatchCall
- func (c *ProductstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*ProductstatusesCustomBatchResponse, error)
- func (c *ProductstatusesCustombatchCall) Fields(s ...googleapi.Field) *ProductstatusesCustombatchCall
- func (c *ProductstatusesCustombatchCall) Header() http.Header
- type ProductstatusesGetCall
- func (c *ProductstatusesGetCall) Context(ctx context.Context) *ProductstatusesGetCall
- func (c *ProductstatusesGetCall) Destinations(destinations ...string) *ProductstatusesGetCall
- func (c *ProductstatusesGetCall) Do(opts ...googleapi.CallOption) (*ProductStatus, error)
- func (c *ProductstatusesGetCall) Fields(s ...googleapi.Field) *ProductstatusesGetCall
- func (c *ProductstatusesGetCall) Header() http.Header
- func (c *ProductstatusesGetCall) IfNoneMatch(entityTag string) *ProductstatusesGetCall
- type ProductstatusesListCall
- func (c *ProductstatusesListCall) Context(ctx context.Context) *ProductstatusesListCall
- func (c *ProductstatusesListCall) Destinations(destinations ...string) *ProductstatusesListCall
- func (c *ProductstatusesListCall) Do(opts ...googleapi.CallOption) (*ProductstatusesListResponse, error)
- func (c *ProductstatusesListCall) Fields(s ...googleapi.Field) *ProductstatusesListCall
- func (c *ProductstatusesListCall) Header() http.Header
- func (c *ProductstatusesListCall) IfNoneMatch(entityTag string) *ProductstatusesListCall
- func (c *ProductstatusesListCall) MaxResults(maxResults int64) *ProductstatusesListCall
- func (c *ProductstatusesListCall) PageToken(pageToken string) *ProductstatusesListCall
- func (c *ProductstatusesListCall) Pages(ctx context.Context, f func(*ProductstatusesListResponse) error) error
- type ProductstatusesListResponse
- type ProductstatusesRepricingreportsListCall
- func (c *ProductstatusesRepricingreportsListCall) Context(ctx context.Context) *ProductstatusesRepricingreportsListCall
- func (c *ProductstatusesRepricingreportsListCall) Do(opts ...googleapi.CallOption) (*ListRepricingProductReportsResponse, error)
- func (c *ProductstatusesRepricingreportsListCall) EndDate(endDate string) *ProductstatusesRepricingreportsListCall
- func (c *ProductstatusesRepricingreportsListCall) Fields(s ...googleapi.Field) *ProductstatusesRepricingreportsListCall
- func (c *ProductstatusesRepricingreportsListCall) Header() http.Header
- func (c *ProductstatusesRepricingreportsListCall) IfNoneMatch(entityTag string) *ProductstatusesRepricingreportsListCall
- func (c *ProductstatusesRepricingreportsListCall) PageSize(pageSize int64) *ProductstatusesRepricingreportsListCall
- func (c *ProductstatusesRepricingreportsListCall) PageToken(pageToken string) *ProductstatusesRepricingreportsListCall
- func (c *ProductstatusesRepricingreportsListCall) Pages(ctx context.Context, f func(*ListRepricingProductReportsResponse) error) error
- func (c *ProductstatusesRepricingreportsListCall) RuleId(ruleId string) *ProductstatusesRepricingreportsListCall
- func (c *ProductstatusesRepricingreportsListCall) StartDate(startDate string) *ProductstatusesRepricingreportsListCall
- type ProductstatusesRepricingreportsService
- type ProductstatusesService
- func (r *ProductstatusesService) Custombatch(productstatusescustombatchrequest *ProductstatusesCustomBatchRequest) *ProductstatusesCustombatchCall
- func (r *ProductstatusesService) Get(merchantId uint64, productId string) *ProductstatusesGetCall
- func (r *ProductstatusesService) List(merchantId uint64) *ProductstatusesListCall
- type PubsubNotificationSettings
- type PubsubnotificationsettingsGetCall
- func (c *PubsubnotificationsettingsGetCall) Context(ctx context.Context) *PubsubnotificationsettingsGetCall
- func (c *PubsubnotificationsettingsGetCall) Do(opts ...googleapi.CallOption) (*PubsubNotificationSettings, error)
- func (c *PubsubnotificationsettingsGetCall) Fields(s ...googleapi.Field) *PubsubnotificationsettingsGetCall
- func (c *PubsubnotificationsettingsGetCall) Header() http.Header
- func (c *PubsubnotificationsettingsGetCall) IfNoneMatch(entityTag string) *PubsubnotificationsettingsGetCall
- type PubsubnotificationsettingsService
- type PubsubnotificationsettingsUpdateCall
- func (c *PubsubnotificationsettingsUpdateCall) Context(ctx context.Context) *PubsubnotificationsettingsUpdateCall
- func (c *PubsubnotificationsettingsUpdateCall) Do(opts ...googleapi.CallOption) (*PubsubNotificationSettings, error)
- func (c *PubsubnotificationsettingsUpdateCall) Fields(s ...googleapi.Field) *PubsubnotificationsettingsUpdateCall
- func (c *PubsubnotificationsettingsUpdateCall) Header() http.Header
- type RateGroup
- type RefundReason
- type Region
- type RegionGeoTargetArea
- type RegionPostalCodeArea
- type RegionPostalCodeAreaPostalCodeRange
- type RegionalInventory
- type RegionalinventoryCustomBatchRequest
- type RegionalinventoryCustomBatchRequestEntry
- type RegionalinventoryCustomBatchResponse
- type RegionalinventoryCustomBatchResponseEntry
- type RegionalinventoryCustombatchCall
- func (c *RegionalinventoryCustombatchCall) Context(ctx context.Context) *RegionalinventoryCustombatchCall
- func (c *RegionalinventoryCustombatchCall) Do(opts ...googleapi.CallOption) (*RegionalinventoryCustomBatchResponse, error)
- func (c *RegionalinventoryCustombatchCall) Fields(s ...googleapi.Field) *RegionalinventoryCustombatchCall
- func (c *RegionalinventoryCustombatchCall) Header() http.Header
- type RegionalinventoryInsertCall
- func (c *RegionalinventoryInsertCall) Context(ctx context.Context) *RegionalinventoryInsertCall
- func (c *RegionalinventoryInsertCall) Do(opts ...googleapi.CallOption) (*RegionalInventory, error)
- func (c *RegionalinventoryInsertCall) Fields(s ...googleapi.Field) *RegionalinventoryInsertCall
- func (c *RegionalinventoryInsertCall) Header() http.Header
- type RegionalinventoryService
- func (r *RegionalinventoryService) Custombatch(regionalinventorycustombatchrequest *RegionalinventoryCustomBatchRequest) *RegionalinventoryCustombatchCall
- func (r *RegionalinventoryService) Insert(merchantId uint64, productId string, regionalinventory *RegionalInventory) *RegionalinventoryInsertCall
- type RegionsCreateCall
- func (c *RegionsCreateCall) Context(ctx context.Context) *RegionsCreateCall
- func (c *RegionsCreateCall) Do(opts ...googleapi.CallOption) (*Region, error)
- func (c *RegionsCreateCall) Fields(s ...googleapi.Field) *RegionsCreateCall
- func (c *RegionsCreateCall) Header() http.Header
- func (c *RegionsCreateCall) RegionId(regionId string) *RegionsCreateCall
- type RegionsDeleteCall
- type RegionsGetCall
- func (c *RegionsGetCall) Context(ctx context.Context) *RegionsGetCall
- func (c *RegionsGetCall) Do(opts ...googleapi.CallOption) (*Region, error)
- func (c *RegionsGetCall) Fields(s ...googleapi.Field) *RegionsGetCall
- func (c *RegionsGetCall) Header() http.Header
- func (c *RegionsGetCall) IfNoneMatch(entityTag string) *RegionsGetCall
- type RegionsListCall
- func (c *RegionsListCall) Context(ctx context.Context) *RegionsListCall
- func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*ListRegionsResponse, error)
- func (c *RegionsListCall) Fields(s ...googleapi.Field) *RegionsListCall
- func (c *RegionsListCall) Header() http.Header
- func (c *RegionsListCall) IfNoneMatch(entityTag string) *RegionsListCall
- func (c *RegionsListCall) PageSize(pageSize int64) *RegionsListCall
- func (c *RegionsListCall) PageToken(pageToken string) *RegionsListCall
- func (c *RegionsListCall) Pages(ctx context.Context, f func(*ListRegionsResponse) error) error
- type RegionsPatchCall
- func (c *RegionsPatchCall) Context(ctx context.Context) *RegionsPatchCall
- func (c *RegionsPatchCall) Do(opts ...googleapi.CallOption) (*Region, error)
- func (c *RegionsPatchCall) Fields(s ...googleapi.Field) *RegionsPatchCall
- func (c *RegionsPatchCall) Header() http.Header
- func (c *RegionsPatchCall) UpdateMask(updateMask string) *RegionsPatchCall
- type RegionsService
- func (r *RegionsService) Create(merchantId int64, region *Region) *RegionsCreateCall
- func (r *RegionsService) Delete(merchantId int64, regionId string) *RegionsDeleteCall
- func (r *RegionsService) Get(merchantId int64, regionId string) *RegionsGetCall
- func (r *RegionsService) List(merchantId int64) *RegionsListCall
- func (r *RegionsService) Patch(merchantId int64, regionId string, region *Region) *RegionsPatchCall
- type ReportRow
- type ReportsSearchCall
- func (c *ReportsSearchCall) Context(ctx context.Context) *ReportsSearchCall
- func (c *ReportsSearchCall) Do(opts ...googleapi.CallOption) (*SearchResponse, error)
- func (c *ReportsSearchCall) Fields(s ...googleapi.Field) *ReportsSearchCall
- func (c *ReportsSearchCall) Header() http.Header
- func (c *ReportsSearchCall) Pages(ctx context.Context, f func(*SearchResponse) error) error
- type ReportsService
- type RepricingProductReport
- type RepricingProductReportBuyboxWinningProductStats
- type RepricingRule
- type RepricingRuleCostOfGoodsSaleRule
- type RepricingRuleEffectiveTime
- type RepricingRuleEffectiveTimeFixedTimePeriod
- type RepricingRuleEligibleOfferMatcher
- type RepricingRuleEligibleOfferMatcherStringMatcher
- type RepricingRuleReport
- type RepricingRuleReportBuyboxWinningRuleStats
- type RepricingRuleRestriction
- type RepricingRuleRestrictionBoundary
- type RepricingRuleStatsBasedRule
- type RepricingrulesCreateCall
- func (c *RepricingrulesCreateCall) Context(ctx context.Context) *RepricingrulesCreateCall
- func (c *RepricingrulesCreateCall) Do(opts ...googleapi.CallOption) (*RepricingRule, error)
- func (c *RepricingrulesCreateCall) Fields(s ...googleapi.Field) *RepricingrulesCreateCall
- func (c *RepricingrulesCreateCall) Header() http.Header
- func (c *RepricingrulesCreateCall) RuleId(ruleId string) *RepricingrulesCreateCall
- type RepricingrulesDeleteCall
- func (c *RepricingrulesDeleteCall) Context(ctx context.Context) *RepricingrulesDeleteCall
- func (c *RepricingrulesDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *RepricingrulesDeleteCall) Fields(s ...googleapi.Field) *RepricingrulesDeleteCall
- func (c *RepricingrulesDeleteCall) Header() http.Header
- type RepricingrulesGetCall
- func (c *RepricingrulesGetCall) Context(ctx context.Context) *RepricingrulesGetCall
- func (c *RepricingrulesGetCall) Do(opts ...googleapi.CallOption) (*RepricingRule, error)
- func (c *RepricingrulesGetCall) Fields(s ...googleapi.Field) *RepricingrulesGetCall
- func (c *RepricingrulesGetCall) Header() http.Header
- func (c *RepricingrulesGetCall) IfNoneMatch(entityTag string) *RepricingrulesGetCall
- type RepricingrulesListCall
- func (c *RepricingrulesListCall) Context(ctx context.Context) *RepricingrulesListCall
- func (c *RepricingrulesListCall) CountryCode(countryCode string) *RepricingrulesListCall
- func (c *RepricingrulesListCall) Do(opts ...googleapi.CallOption) (*ListRepricingRulesResponse, error)
- func (c *RepricingrulesListCall) Fields(s ...googleapi.Field) *RepricingrulesListCall
- func (c *RepricingrulesListCall) Header() http.Header
- func (c *RepricingrulesListCall) IfNoneMatch(entityTag string) *RepricingrulesListCall
- func (c *RepricingrulesListCall) LanguageCode(languageCode string) *RepricingrulesListCall
- func (c *RepricingrulesListCall) PageSize(pageSize int64) *RepricingrulesListCall
- func (c *RepricingrulesListCall) PageToken(pageToken string) *RepricingrulesListCall
- func (c *RepricingrulesListCall) Pages(ctx context.Context, f func(*ListRepricingRulesResponse) error) error
- type RepricingrulesPatchCall
- func (c *RepricingrulesPatchCall) Context(ctx context.Context) *RepricingrulesPatchCall
- func (c *RepricingrulesPatchCall) Do(opts ...googleapi.CallOption) (*RepricingRule, error)
- func (c *RepricingrulesPatchCall) Fields(s ...googleapi.Field) *RepricingrulesPatchCall
- func (c *RepricingrulesPatchCall) Header() http.Header
- type RepricingrulesRepricingreportsListCall
- func (c *RepricingrulesRepricingreportsListCall) Context(ctx context.Context) *RepricingrulesRepricingreportsListCall
- func (c *RepricingrulesRepricingreportsListCall) Do(opts ...googleapi.CallOption) (*ListRepricingRuleReportsResponse, error)
- func (c *RepricingrulesRepricingreportsListCall) EndDate(endDate string) *RepricingrulesRepricingreportsListCall
- func (c *RepricingrulesRepricingreportsListCall) Fields(s ...googleapi.Field) *RepricingrulesRepricingreportsListCall
- func (c *RepricingrulesRepricingreportsListCall) Header() http.Header
- func (c *RepricingrulesRepricingreportsListCall) IfNoneMatch(entityTag string) *RepricingrulesRepricingreportsListCall
- func (c *RepricingrulesRepricingreportsListCall) PageSize(pageSize int64) *RepricingrulesRepricingreportsListCall
- func (c *RepricingrulesRepricingreportsListCall) PageToken(pageToken string) *RepricingrulesRepricingreportsListCall
- func (c *RepricingrulesRepricingreportsListCall) Pages(ctx context.Context, f func(*ListRepricingRuleReportsResponse) error) error
- func (c *RepricingrulesRepricingreportsListCall) StartDate(startDate string) *RepricingrulesRepricingreportsListCall
- type RepricingrulesRepricingreportsService
- type RepricingrulesService
- func (r *RepricingrulesService) Create(merchantId int64, repricingrule *RepricingRule) *RepricingrulesCreateCall
- func (r *RepricingrulesService) Delete(merchantId int64, ruleId string) *RepricingrulesDeleteCall
- func (r *RepricingrulesService) Get(merchantId int64, ruleId string) *RepricingrulesGetCall
- func (r *RepricingrulesService) List(merchantId int64) *RepricingrulesListCall
- func (r *RepricingrulesService) Patch(merchantId int64, ruleId string, repricingrule *RepricingRule) *RepricingrulesPatchCall
- type ReturnAddress
- type ReturnAddressAddress
- type ReturnPolicy
- type ReturnPolicyOnline
- type ReturnPolicyOnlinePolicy
- type ReturnPolicyOnlineRestockingFee
- type ReturnPolicyOnlineReturnReasonCategoryInfo
- type ReturnPolicyOnlineReturnShippingFee
- type ReturnPolicyPolicy
- type ReturnPolicySeasonalOverride
- type ReturnPricingInfo
- type ReturnShipment
- type ReturnaddressCustomBatchRequest
- type ReturnaddressCustomBatchRequestEntry
- type ReturnaddressCustomBatchResponse
- type ReturnaddressCustomBatchResponseEntry
- type ReturnaddressCustombatchCall
- func (c *ReturnaddressCustombatchCall) Context(ctx context.Context) *ReturnaddressCustombatchCall
- func (c *ReturnaddressCustombatchCall) Do(opts ...googleapi.CallOption) (*ReturnaddressCustomBatchResponse, error)
- func (c *ReturnaddressCustombatchCall) Fields(s ...googleapi.Field) *ReturnaddressCustombatchCall
- func (c *ReturnaddressCustombatchCall) Header() http.Header
- type ReturnaddressDeleteCall
- func (c *ReturnaddressDeleteCall) Context(ctx context.Context) *ReturnaddressDeleteCall
- func (c *ReturnaddressDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *ReturnaddressDeleteCall) Fields(s ...googleapi.Field) *ReturnaddressDeleteCall
- func (c *ReturnaddressDeleteCall) Header() http.Header
- type ReturnaddressGetCall
- func (c *ReturnaddressGetCall) Context(ctx context.Context) *ReturnaddressGetCall
- func (c *ReturnaddressGetCall) Do(opts ...googleapi.CallOption) (*ReturnAddress, error)
- func (c *ReturnaddressGetCall) Fields(s ...googleapi.Field) *ReturnaddressGetCall
- func (c *ReturnaddressGetCall) Header() http.Header
- func (c *ReturnaddressGetCall) IfNoneMatch(entityTag string) *ReturnaddressGetCall
- type ReturnaddressInsertCall
- func (c *ReturnaddressInsertCall) Context(ctx context.Context) *ReturnaddressInsertCall
- func (c *ReturnaddressInsertCall) Do(opts ...googleapi.CallOption) (*ReturnAddress, error)
- func (c *ReturnaddressInsertCall) Fields(s ...googleapi.Field) *ReturnaddressInsertCall
- func (c *ReturnaddressInsertCall) Header() http.Header
- type ReturnaddressListCall
- func (c *ReturnaddressListCall) Context(ctx context.Context) *ReturnaddressListCall
- func (c *ReturnaddressListCall) Country(country string) *ReturnaddressListCall
- func (c *ReturnaddressListCall) Do(opts ...googleapi.CallOption) (*ReturnaddressListResponse, error)
- func (c *ReturnaddressListCall) Fields(s ...googleapi.Field) *ReturnaddressListCall
- func (c *ReturnaddressListCall) Header() http.Header
- func (c *ReturnaddressListCall) IfNoneMatch(entityTag string) *ReturnaddressListCall
- func (c *ReturnaddressListCall) MaxResults(maxResults int64) *ReturnaddressListCall
- func (c *ReturnaddressListCall) PageToken(pageToken string) *ReturnaddressListCall
- func (c *ReturnaddressListCall) Pages(ctx context.Context, f func(*ReturnaddressListResponse) error) error
- type ReturnaddressListResponse
- type ReturnaddressService
- func (r *ReturnaddressService) Custombatch(returnaddresscustombatchrequest *ReturnaddressCustomBatchRequest) *ReturnaddressCustombatchCall
- func (r *ReturnaddressService) Delete(merchantId uint64, returnAddressId string) *ReturnaddressDeleteCall
- func (r *ReturnaddressService) Get(merchantId uint64, returnAddressId string) *ReturnaddressGetCall
- func (r *ReturnaddressService) Insert(merchantId uint64, returnaddress *ReturnAddress) *ReturnaddressInsertCall
- func (r *ReturnaddressService) List(merchantId uint64) *ReturnaddressListCall
- type ReturnpolicyCustomBatchRequest
- type ReturnpolicyCustomBatchRequestEntry
- type ReturnpolicyCustomBatchResponse
- type ReturnpolicyCustomBatchResponseEntry
- type ReturnpolicyCustombatchCall
- func (c *ReturnpolicyCustombatchCall) Context(ctx context.Context) *ReturnpolicyCustombatchCall
- func (c *ReturnpolicyCustombatchCall) Do(opts ...googleapi.CallOption) (*ReturnpolicyCustomBatchResponse, error)
- func (c *ReturnpolicyCustombatchCall) Fields(s ...googleapi.Field) *ReturnpolicyCustombatchCall
- func (c *ReturnpolicyCustombatchCall) Header() http.Header
- type ReturnpolicyDeleteCall
- type ReturnpolicyGetCall
- func (c *ReturnpolicyGetCall) Context(ctx context.Context) *ReturnpolicyGetCall
- func (c *ReturnpolicyGetCall) Do(opts ...googleapi.CallOption) (*ReturnPolicy, error)
- func (c *ReturnpolicyGetCall) Fields(s ...googleapi.Field) *ReturnpolicyGetCall
- func (c *ReturnpolicyGetCall) Header() http.Header
- func (c *ReturnpolicyGetCall) IfNoneMatch(entityTag string) *ReturnpolicyGetCall
- type ReturnpolicyInsertCall
- func (c *ReturnpolicyInsertCall) Context(ctx context.Context) *ReturnpolicyInsertCall
- func (c *ReturnpolicyInsertCall) Do(opts ...googleapi.CallOption) (*ReturnPolicy, error)
- func (c *ReturnpolicyInsertCall) Fields(s ...googleapi.Field) *ReturnpolicyInsertCall
- func (c *ReturnpolicyInsertCall) Header() http.Header
- type ReturnpolicyListCall
- func (c *ReturnpolicyListCall) Context(ctx context.Context) *ReturnpolicyListCall
- func (c *ReturnpolicyListCall) Do(opts ...googleapi.CallOption) (*ReturnpolicyListResponse, error)
- func (c *ReturnpolicyListCall) Fields(s ...googleapi.Field) *ReturnpolicyListCall
- func (c *ReturnpolicyListCall) Header() http.Header
- func (c *ReturnpolicyListCall) IfNoneMatch(entityTag string) *ReturnpolicyListCall
- type ReturnpolicyListResponse
- type ReturnpolicyService
- func (r *ReturnpolicyService) Custombatch(returnpolicycustombatchrequest *ReturnpolicyCustomBatchRequest) *ReturnpolicyCustombatchCall
- func (r *ReturnpolicyService) Delete(merchantId uint64, returnPolicyId string) *ReturnpolicyDeleteCall
- func (r *ReturnpolicyService) Get(merchantId uint64, returnPolicyId string) *ReturnpolicyGetCall
- func (r *ReturnpolicyService) Insert(merchantId uint64, returnpolicy *ReturnPolicy) *ReturnpolicyInsertCall
- func (r *ReturnpolicyService) List(merchantId uint64) *ReturnpolicyListCall
- type ReturnpolicyonlineCreateCall
- func (c *ReturnpolicyonlineCreateCall) Context(ctx context.Context) *ReturnpolicyonlineCreateCall
- func (c *ReturnpolicyonlineCreateCall) Do(opts ...googleapi.CallOption) (*ReturnPolicyOnline, error)
- func (c *ReturnpolicyonlineCreateCall) Fields(s ...googleapi.Field) *ReturnpolicyonlineCreateCall
- func (c *ReturnpolicyonlineCreateCall) Header() http.Header
- type ReturnpolicyonlineDeleteCall
- func (c *ReturnpolicyonlineDeleteCall) Context(ctx context.Context) *ReturnpolicyonlineDeleteCall
- func (c *ReturnpolicyonlineDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *ReturnpolicyonlineDeleteCall) Fields(s ...googleapi.Field) *ReturnpolicyonlineDeleteCall
- func (c *ReturnpolicyonlineDeleteCall) Header() http.Header
- type ReturnpolicyonlineGetCall
- func (c *ReturnpolicyonlineGetCall) Context(ctx context.Context) *ReturnpolicyonlineGetCall
- func (c *ReturnpolicyonlineGetCall) Do(opts ...googleapi.CallOption) (*ReturnPolicyOnline, error)
- func (c *ReturnpolicyonlineGetCall) Fields(s ...googleapi.Field) *ReturnpolicyonlineGetCall
- func (c *ReturnpolicyonlineGetCall) Header() http.Header
- func (c *ReturnpolicyonlineGetCall) IfNoneMatch(entityTag string) *ReturnpolicyonlineGetCall
- type ReturnpolicyonlineListCall
- func (c *ReturnpolicyonlineListCall) Context(ctx context.Context) *ReturnpolicyonlineListCall
- func (c *ReturnpolicyonlineListCall) Do(opts ...googleapi.CallOption) (*ListReturnPolicyOnlineResponse, error)
- func (c *ReturnpolicyonlineListCall) Fields(s ...googleapi.Field) *ReturnpolicyonlineListCall
- func (c *ReturnpolicyonlineListCall) Header() http.Header
- func (c *ReturnpolicyonlineListCall) IfNoneMatch(entityTag string) *ReturnpolicyonlineListCall
- type ReturnpolicyonlinePatchCall
- func (c *ReturnpolicyonlinePatchCall) Context(ctx context.Context) *ReturnpolicyonlinePatchCall
- func (c *ReturnpolicyonlinePatchCall) Do(opts ...googleapi.CallOption) (*ReturnPolicyOnline, error)
- func (c *ReturnpolicyonlinePatchCall) Fields(s ...googleapi.Field) *ReturnpolicyonlinePatchCall
- func (c *ReturnpolicyonlinePatchCall) Header() http.Header
- type ReturnpolicyonlineService
- func (r *ReturnpolicyonlineService) Create(merchantId int64, returnpolicyonline *ReturnPolicyOnline) *ReturnpolicyonlineCreateCall
- func (r *ReturnpolicyonlineService) Delete(merchantId int64, returnPolicyId string) *ReturnpolicyonlineDeleteCall
- func (r *ReturnpolicyonlineService) Get(merchantId int64, returnPolicyId string) *ReturnpolicyonlineGetCall
- func (r *ReturnpolicyonlineService) List(merchantId int64) *ReturnpolicyonlineListCall
- func (r *ReturnpolicyonlineService) Patch(merchantId int64, returnPolicyId string, ...) *ReturnpolicyonlinePatchCall
- type Row
- type SearchRequest
- type SearchResponse
- type Segments
- type Service
- type SettlementReport
- type SettlementTransaction
- type SettlementTransactionAmount
- type SettlementTransactionAmountCommission
- type SettlementTransactionIdentifiers
- type SettlementTransactionTransaction
- type SettlementreportsGetCall
- func (c *SettlementreportsGetCall) Context(ctx context.Context) *SettlementreportsGetCall
- func (c *SettlementreportsGetCall) Do(opts ...googleapi.CallOption) (*SettlementReport, error)
- func (c *SettlementreportsGetCall) Fields(s ...googleapi.Field) *SettlementreportsGetCall
- func (c *SettlementreportsGetCall) Header() http.Header
- func (c *SettlementreportsGetCall) IfNoneMatch(entityTag string) *SettlementreportsGetCall
- type SettlementreportsListCall
- func (c *SettlementreportsListCall) Context(ctx context.Context) *SettlementreportsListCall
- func (c *SettlementreportsListCall) Do(opts ...googleapi.CallOption) (*SettlementreportsListResponse, error)
- func (c *SettlementreportsListCall) Fields(s ...googleapi.Field) *SettlementreportsListCall
- func (c *SettlementreportsListCall) Header() http.Header
- func (c *SettlementreportsListCall) IfNoneMatch(entityTag string) *SettlementreportsListCall
- func (c *SettlementreportsListCall) MaxResults(maxResults int64) *SettlementreportsListCall
- func (c *SettlementreportsListCall) PageToken(pageToken string) *SettlementreportsListCall
- func (c *SettlementreportsListCall) Pages(ctx context.Context, f func(*SettlementreportsListResponse) error) error
- func (c *SettlementreportsListCall) TransferEndDate(transferEndDate string) *SettlementreportsListCall
- func (c *SettlementreportsListCall) TransferStartDate(transferStartDate string) *SettlementreportsListCall
- type SettlementreportsListResponse
- type SettlementreportsService
- type SettlementtransactionsListCall
- func (c *SettlementtransactionsListCall) Context(ctx context.Context) *SettlementtransactionsListCall
- func (c *SettlementtransactionsListCall) Do(opts ...googleapi.CallOption) (*SettlementtransactionsListResponse, error)
- func (c *SettlementtransactionsListCall) Fields(s ...googleapi.Field) *SettlementtransactionsListCall
- func (c *SettlementtransactionsListCall) Header() http.Header
- func (c *SettlementtransactionsListCall) IfNoneMatch(entityTag string) *SettlementtransactionsListCall
- func (c *SettlementtransactionsListCall) MaxResults(maxResults int64) *SettlementtransactionsListCall
- func (c *SettlementtransactionsListCall) PageToken(pageToken string) *SettlementtransactionsListCall
- func (c *SettlementtransactionsListCall) Pages(ctx context.Context, f func(*SettlementtransactionsListResponse) error) error
- func (c *SettlementtransactionsListCall) TransactionIds(transactionIds ...string) *SettlementtransactionsListCall
- type SettlementtransactionsListResponse
- type SettlementtransactionsService
- type ShipmentInvoice
- type ShipmentInvoiceLineItemInvoice
- type ShipmentTrackingInfo
- type ShippingSettings
- type ShippingsettingsCustomBatchRequest
- type ShippingsettingsCustomBatchRequestEntry
- type ShippingsettingsCustomBatchResponse
- type ShippingsettingsCustomBatchResponseEntry
- type ShippingsettingsCustombatchCall
- func (c *ShippingsettingsCustombatchCall) Context(ctx context.Context) *ShippingsettingsCustombatchCall
- func (c *ShippingsettingsCustombatchCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsCustomBatchResponse, error)
- func (c *ShippingsettingsCustombatchCall) Fields(s ...googleapi.Field) *ShippingsettingsCustombatchCall
- func (c *ShippingsettingsCustombatchCall) Header() http.Header
- type ShippingsettingsGetCall
- func (c *ShippingsettingsGetCall) Context(ctx context.Context) *ShippingsettingsGetCall
- func (c *ShippingsettingsGetCall) Do(opts ...googleapi.CallOption) (*ShippingSettings, error)
- func (c *ShippingsettingsGetCall) Fields(s ...googleapi.Field) *ShippingsettingsGetCall
- func (c *ShippingsettingsGetCall) Header() http.Header
- func (c *ShippingsettingsGetCall) IfNoneMatch(entityTag string) *ShippingsettingsGetCall
- type ShippingsettingsGetSupportedCarriersResponse
- type ShippingsettingsGetSupportedHolidaysResponse
- type ShippingsettingsGetSupportedPickupServicesResponse
- type ShippingsettingsGetsupportedcarriersCall
- func (c *ShippingsettingsGetsupportedcarriersCall) Context(ctx context.Context) *ShippingsettingsGetsupportedcarriersCall
- func (c *ShippingsettingsGetsupportedcarriersCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsGetSupportedCarriersResponse, error)
- func (c *ShippingsettingsGetsupportedcarriersCall) Fields(s ...googleapi.Field) *ShippingsettingsGetsupportedcarriersCall
- func (c *ShippingsettingsGetsupportedcarriersCall) Header() http.Header
- func (c *ShippingsettingsGetsupportedcarriersCall) IfNoneMatch(entityTag string) *ShippingsettingsGetsupportedcarriersCall
- type ShippingsettingsGetsupportedholidaysCall
- func (c *ShippingsettingsGetsupportedholidaysCall) Context(ctx context.Context) *ShippingsettingsGetsupportedholidaysCall
- func (c *ShippingsettingsGetsupportedholidaysCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsGetSupportedHolidaysResponse, error)
- func (c *ShippingsettingsGetsupportedholidaysCall) Fields(s ...googleapi.Field) *ShippingsettingsGetsupportedholidaysCall
- func (c *ShippingsettingsGetsupportedholidaysCall) Header() http.Header
- func (c *ShippingsettingsGetsupportedholidaysCall) IfNoneMatch(entityTag string) *ShippingsettingsGetsupportedholidaysCall
- type ShippingsettingsGetsupportedpickupservicesCall
- func (c *ShippingsettingsGetsupportedpickupservicesCall) Context(ctx context.Context) *ShippingsettingsGetsupportedpickupservicesCall
- func (c *ShippingsettingsGetsupportedpickupservicesCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsGetSupportedPickupServicesResponse, error)
- func (c *ShippingsettingsGetsupportedpickupservicesCall) Fields(s ...googleapi.Field) *ShippingsettingsGetsupportedpickupservicesCall
- func (c *ShippingsettingsGetsupportedpickupservicesCall) Header() http.Header
- func (c *ShippingsettingsGetsupportedpickupservicesCall) IfNoneMatch(entityTag string) *ShippingsettingsGetsupportedpickupservicesCall
- type ShippingsettingsListCall
- func (c *ShippingsettingsListCall) Context(ctx context.Context) *ShippingsettingsListCall
- func (c *ShippingsettingsListCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsListResponse, error)
- func (c *ShippingsettingsListCall) Fields(s ...googleapi.Field) *ShippingsettingsListCall
- func (c *ShippingsettingsListCall) Header() http.Header
- func (c *ShippingsettingsListCall) IfNoneMatch(entityTag string) *ShippingsettingsListCall
- func (c *ShippingsettingsListCall) MaxResults(maxResults int64) *ShippingsettingsListCall
- func (c *ShippingsettingsListCall) PageToken(pageToken string) *ShippingsettingsListCall
- func (c *ShippingsettingsListCall) Pages(ctx context.Context, f func(*ShippingsettingsListResponse) error) error
- type ShippingsettingsListResponse
- type ShippingsettingsService
- func (r *ShippingsettingsService) Custombatch(shippingsettingscustombatchrequest *ShippingsettingsCustomBatchRequest) *ShippingsettingsCustombatchCall
- func (r *ShippingsettingsService) Get(merchantId uint64, accountId uint64) *ShippingsettingsGetCall
- func (r *ShippingsettingsService) Getsupportedcarriers(merchantId uint64) *ShippingsettingsGetsupportedcarriersCall
- func (r *ShippingsettingsService) Getsupportedholidays(merchantId uint64) *ShippingsettingsGetsupportedholidaysCall
- func (r *ShippingsettingsService) Getsupportedpickupservices(merchantId uint64) *ShippingsettingsGetsupportedpickupservicesCall
- func (r *ShippingsettingsService) List(merchantId uint64) *ShippingsettingsListCall
- func (r *ShippingsettingsService) Update(merchantId uint64, accountId uint64, shippingsettings *ShippingSettings) *ShippingsettingsUpdateCall
- type ShippingsettingsUpdateCall
- func (c *ShippingsettingsUpdateCall) Context(ctx context.Context) *ShippingsettingsUpdateCall
- func (c *ShippingsettingsUpdateCall) Do(opts ...googleapi.CallOption) (*ShippingSettings, error)
- func (c *ShippingsettingsUpdateCall) Fields(s ...googleapi.Field) *ShippingsettingsUpdateCall
- func (c *ShippingsettingsUpdateCall) Header() http.Header
- type Table
- type TestOrder
- type TestOrderAddress
- type TestOrderDeliveryDetails
- type TestOrderLineItem
- type TestOrderLineItemProduct
- type TestOrderPickupDetails
- type TestOrderPickupDetailsPickupPerson
- type TimeZone
- type TransitTable
- type TransitTableTransitTimeRow
- type TransitTableTransitTimeRowTransitTimeValue
- type UnitInvoice
- type UnitInvoiceAdditionalCharge
- type UnitInvoiceTaxLine
- type Value
- type Weight
Constants ¶
const (
// Manage your product listings and accounts for Google Shopping
ContentScope = "https://www.googleapis.com/auth/content"
)
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIService ¶
type APIService struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Accounts *AccountsService Accountstatuses *AccountstatusesService Accounttax *AccounttaxService Buyongoogleprograms *BuyongoogleprogramsService Collections *CollectionsService Collectionstatuses *CollectionstatusesService Csses *CssesService Datafeeds *DatafeedsService Datafeedstatuses *DatafeedstatusesService Liasettings *LiasettingsService Localinventory *LocalinventoryService Orderinvoices *OrderinvoicesService Orderreports *OrderreportsService Orderreturns *OrderreturnsService Orders *OrdersService Ordertrackingsignals *OrdertrackingsignalsService Pos *PosService Products *ProductsService Productstatuses *ProductstatusesService Pubsubnotificationsettings *PubsubnotificationsettingsService Regionalinventory *RegionalinventoryService Regions *RegionsService Reports *ReportsService Repricingrules *RepricingrulesService Returnaddress *ReturnaddressService Returnpolicy *ReturnpolicyService Returnpolicyonline *ReturnpolicyonlineService Settlementreports *SettlementreportsService Settlementtransactions *SettlementtransactionsService Shippingsettings *ShippingsettingsService // contains filtered or unexported fields }
func New
deprecated
func New(client *http.Client) (*APIService, error)
New creates a new APIService. It uses the provided http.Client for requests.
Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func NewService ¶ added in v0.3.0
func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, error)
NewService creates a new APIService.
type Account ¶
type Account struct { // AdsLinks: Linked Ads accounts that are active or pending approval. To // create a new link request, add a new link with status `active` to the // list. It will remain in a `pending` state until approved or rejected // either in the Ads interface or through the AdWords API. To delete an // active link, or to cancel a link request, remove it from the list. AdsLinks []*AccountAdsLink `json:"adsLinks,omitempty"` // AdultContent: Indicates whether the merchant sells adult content. AdultContent bool `json:"adultContent,omitempty"` // AutomaticLabelIds: Automatically created label IDs that are assigned // to the account by CSS Center. AutomaticLabelIds googleapi.Uint64s `json:"automaticLabelIds,omitempty"` // BusinessInformation: The business information of the account. BusinessInformation *AccountBusinessInformation `json:"businessInformation,omitempty"` // CssId: ID of CSS the account belongs to. CssId uint64 `json:"cssId,omitempty,string"` // GoogleMyBusinessLink: The GMB account which is linked or in the // process of being linked with the Merchant Center account. GoogleMyBusinessLink *AccountGoogleMyBusinessLink `json:"googleMyBusinessLink,omitempty"` // Id: Required for update. Merchant Center account ID. Id uint64 `json:"id,omitempty,string"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#account" Kind string `json:"kind,omitempty"` // LabelIds: Manually created label IDs that are assigned to the account // by CSS. LabelIds googleapi.Uint64s `json:"labelIds,omitempty"` // Name: Required. Display name for the account. Name string `json:"name,omitempty"` // SellerId: Client-specific, locally-unique, internal ID for the child // account. SellerId string `json:"sellerId,omitempty"` // Users: Users with access to the account. Every account (except for // subaccounts) must have at least one admin user. Users []*AccountUser `json:"users,omitempty"` // WebsiteUrl: The merchant's website. WebsiteUrl string `json:"websiteUrl,omitempty"` // YoutubeChannelLinks: Linked YouTube channels that are active or // pending approval. To create a new link request, add a new link with // status `active` to the list. It will remain in a `pending` state // until approved or rejected in the YT Creator Studio interface. To // delete an active link, or to cancel a link request, remove it from // the list. YoutubeChannelLinks []*AccountYouTubeChannelLink `json:"youtubeChannelLinks,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AdsLinks") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AdsLinks") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Account: Account data. After the creation of a new account it may take a few minutes before it is fully operational. The methods delete, insert, and update require the admin role.
func (*Account) MarshalJSON ¶
type AccountAddress ¶
type AccountAddress struct { // Country: CLDR country code (e.g. "US"). This value cannot be set for // a sub-account of an MCA. All MCA sub-accounts inherit the country of // their parent MCA. Country string `json:"country,omitempty"` // Locality: City, town or commune. May also include dependent // localities or sublocalities (e.g. neighborhoods or suburbs). Locality string `json:"locality,omitempty"` // PostalCode: Postal code or ZIP (e.g. "94043"). PostalCode string `json:"postalCode,omitempty"` // Region: Top-level administrative subdivision of the country. For // example, a state like California ("CA") or a province like Quebec // ("QC"). Region string `json:"region,omitempty"` // StreetAddress: Street-level part of the address. StreetAddress string `json:"streetAddress,omitempty"` // ForceSendFields is a list of field names (e.g. "Country") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Country") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccountAddress) MarshalJSON ¶
func (s *AccountAddress) MarshalJSON() ([]byte, error)
type AccountAdsLink ¶
type AccountAdsLink struct { // AdsId: Customer ID of the Ads account. AdsId uint64 `json:"adsId,omitempty,string"` // Status: Status of the link between this Merchant Center account and // the Ads account. Upon retrieval, it represents the actual status of // the link and can be either `active` if it was approved in Google Ads // or `pending` if it's pending approval. Upon insertion, it represents // the *intended* status of the link. Re-uploading a link with status // `active` when it's still pending or with status `pending` when it's // already active will have no effect: the status will remain unchanged. // Re-uploading a link with deprecated status `inactive` is equivalent // to not submitting the link at all and will delete the link if it was // active or cancel the link request if it was pending. Acceptable // values are: - "active" - "pending" Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "AdsId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AdsId") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccountAdsLink) MarshalJSON ¶
func (s *AccountAdsLink) MarshalJSON() ([]byte, error)
type AccountBusinessInformation ¶
type AccountBusinessInformation struct { // Address: The address of the business. Address *AccountAddress `json:"address,omitempty"` // CustomerService: The customer service information of the business. CustomerService *AccountCustomerService `json:"customerService,omitempty"` // PhoneNumber: The phone number of the business. PhoneNumber string `json:"phoneNumber,omitempty"` // ForceSendFields is a list of field names (e.g. "Address") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Address") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccountBusinessInformation) MarshalJSON ¶
func (s *AccountBusinessInformation) MarshalJSON() ([]byte, error)
type AccountCredentials ¶ added in v0.41.0
type AccountCredentials struct { // AccessToken: An OAuth access token. AccessToken string `json:"accessToken,omitempty"` // ExpiresIn: The amount of time, in seconds, after which the access // token is no longer valid. ExpiresIn int64 `json:"expiresIn,omitempty,string"` // Purpose: Indicates to Google how Google should use these OAuth // tokens. // // Possible values: // "ACCOUNT_CREDENTIALS_PURPOSE_UNSPECIFIED" - Unknown purpose. // "SHOPIFY_ORDER_MANAGEMENT" - The credentials allow Google to manage // Shopify orders on behalf of the merchant. Purpose string `json:"purpose,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AccessToken") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccessToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AccountCredentials: Credentials allowing Google to call a partner's API on behalf of a merchant.
func (*AccountCredentials) MarshalJSON ¶ added in v0.41.0
func (s *AccountCredentials) MarshalJSON() ([]byte, error)
type AccountCustomerService ¶
type AccountCustomerService struct { // Email: Customer service email. Email string `json:"email,omitempty"` // PhoneNumber: Customer service phone number. PhoneNumber string `json:"phoneNumber,omitempty"` // Url: Customer service URL. Url string `json:"url,omitempty"` // ForceSendFields is a list of field names (e.g. "Email") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Email") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccountCustomerService) MarshalJSON ¶
func (s *AccountCustomerService) MarshalJSON() ([]byte, error)
type AccountGoogleMyBusinessLink ¶
type AccountGoogleMyBusinessLink struct { // GmbAccountId: The ID of the GMB account. If this is provided, then // `gmbEmail` is ignored. The value of this field should match the // `accountId` used by the GMB API. GmbAccountId string `json:"gmbAccountId,omitempty"` // GmbEmail: The GMB email address of which a specific account within a // GMB account. A sample account within a GMB account could be a // business account with set of locations, managed under the GMB // account. GmbEmail string `json:"gmbEmail,omitempty"` // Status: Status of the link between this Merchant Center account and // the GMB account. Acceptable values are: - "active" - "pending" Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "GmbAccountId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "GmbAccountId") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccountGoogleMyBusinessLink) MarshalJSON ¶
func (s *AccountGoogleMyBusinessLink) 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 AccountLabel ¶ added in v0.34.0
type AccountLabel struct { // AccountId: Immutable. The ID of account this label belongs to. AccountId int64 `json:"accountId,omitempty,string"` // Description: The description of this label. Description string `json:"description,omitempty"` // LabelId: Output only. The ID of the label. LabelId int64 `json:"labelId,omitempty,string"` // LabelType: Output only. The type of this label. // // Possible values: // "LABEL_TYPE_UNSPECIFIED" - Unknown label type. // "MANUAL" - Indicates that the label was created manually. // "AUTOMATIC" - Indicates that the label was created automatically by // CSS Center. LabelType string `json:"labelType,omitempty"` // Name: The display name of this label. Name string `json:"name,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:"-"` }
AccountLabel: Label assigned by CSS domain or CSS group to one of its sub-accounts.
func (*AccountLabel) MarshalJSON ¶ added in v0.34.0
func (s *AccountLabel) MarshalJSON() ([]byte, error)
type AccountReturnCarrier ¶ added in v0.37.0
type AccountReturnCarrier struct { // CarrierAccountId: Output only. Immutable. The Google-provided unique // carrier ID, used to update the resource. CarrierAccountId int64 `json:"carrierAccountId,omitempty,string"` // CarrierAccountName: Name of the carrier account. CarrierAccountName string `json:"carrierAccountName,omitempty"` // CarrierAccountNumber: Number of the carrier account. CarrierAccountNumber string `json:"carrierAccountNumber,omitempty"` // CarrierCode: The carrier code enum. Accepts the values FEDEX or UPS. // // Possible values: // "CARRIER_CODE_UNSPECIFIED" - Carrier not specified // "FEDEX" - FedEx carrier // "UPS" - UPS carrier CarrierCode string `json:"carrierCode,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CarrierAccountId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CarrierAccountId") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
AccountReturnCarrier: The return carrier information. This service is designed for merchants enrolled in the Buy on Google program.
func (*AccountReturnCarrier) MarshalJSON ¶ added in v0.37.0
func (s *AccountReturnCarrier) MarshalJSON() ([]byte, error)
type AccountStatus ¶
type AccountStatus struct { // AccountId: The ID of the account for which the status is reported. AccountId string `json:"accountId,omitempty"` // AccountLevelIssues: A list of account level issues. AccountLevelIssues []*AccountStatusAccountLevelIssue `json:"accountLevelIssues,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#accountStatus" Kind string `json:"kind,omitempty"` // Products: List of product-related data by channel, destination, and // country. Data in this field may be delayed by up to 30 minutes. Products []*AccountStatusProducts `json:"products,omitempty"` // WebsiteClaimed: Whether the account's website is claimed or not. WebsiteClaimed bool `json:"websiteClaimed,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AccountId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AccountStatus: The status of an account, i.e., information about its products, which is computed offline and not returned immediately at insertion time.
func (*AccountStatus) MarshalJSON ¶
func (s *AccountStatus) MarshalJSON() ([]byte, error)
type AccountStatusAccountLevelIssue ¶
type AccountStatusAccountLevelIssue struct { // Country: Country for which this issue is reported. Country string `json:"country,omitempty"` // Destination: The destination the issue applies to. If this field is // empty then the issue applies to all available destinations. Destination string `json:"destination,omitempty"` // Detail: Additional details about the issue. Detail string `json:"detail,omitempty"` // Documentation: The URL of a web page to help resolving this issue. Documentation string `json:"documentation,omitempty"` // Id: Issue identifier. Id string `json:"id,omitempty"` // Severity: Severity of the issue. Acceptable values are: - // "critical" - "error" - "suggestion" Severity string `json:"severity,omitempty"` // Title: Short description of the issue. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Country") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Country") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccountStatusAccountLevelIssue) MarshalJSON ¶
func (s *AccountStatusAccountLevelIssue) MarshalJSON() ([]byte, error)
type AccountStatusItemLevelIssue ¶
type AccountStatusItemLevelIssue struct { // AttributeName: The attribute's name, if the issue is caused by a // single attribute. AttributeName string `json:"attributeName,omitempty"` // Code: The error code of the issue. Code string `json:"code,omitempty"` // Description: A short issue description in English. Description string `json:"description,omitempty"` // Detail: A detailed issue description in English. Detail string `json:"detail,omitempty"` // Documentation: The URL of a web page to help with resolving this // issue. Documentation string `json:"documentation,omitempty"` // NumItems: Number of items with this issue. NumItems int64 `json:"numItems,omitempty,string"` // Resolution: Whether the issue can be resolved by the merchant. Resolution string `json:"resolution,omitempty"` // Servability: How this issue affects serving of the offer. Servability string `json:"servability,omitempty"` // ForceSendFields is a list of field names (e.g. "AttributeName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AttributeName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccountStatusItemLevelIssue) MarshalJSON ¶
func (s *AccountStatusItemLevelIssue) MarshalJSON() ([]byte, error)
type AccountStatusProducts ¶
type AccountStatusProducts struct { // Channel: The channel the data applies to. Acceptable values are: - // "local" - "online" Channel string `json:"channel,omitempty"` // Country: The country the data applies to. Country string `json:"country,omitempty"` // Destination: The destination the data applies to. Destination string `json:"destination,omitempty"` // ItemLevelIssues: List of item-level issues. ItemLevelIssues []*AccountStatusItemLevelIssue `json:"itemLevelIssues,omitempty"` // Statistics: Aggregated product statistics. Statistics *AccountStatusStatistics `json:"statistics,omitempty"` // ForceSendFields is a list of field names (e.g. "Channel") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Channel") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccountStatusProducts) MarshalJSON ¶
func (s *AccountStatusProducts) MarshalJSON() ([]byte, error)
type AccountStatusStatistics ¶
type AccountStatusStatistics struct { // Active: Number of active offers. Active int64 `json:"active,omitempty,string"` // Disapproved: Number of disapproved offers. Disapproved int64 `json:"disapproved,omitempty,string"` // Expiring: Number of expiring offers. Expiring int64 `json:"expiring,omitempty,string"` // Pending: Number of pending offers. Pending int64 `json:"pending,omitempty,string"` // ForceSendFields is a list of field names (e.g. "Active") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Active") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccountStatusStatistics) MarshalJSON ¶
func (s *AccountStatusStatistics) MarshalJSON() ([]byte, error)
type AccountTax ¶
type AccountTax struct { // AccountId: Required. The ID of the account to which these account tax // settings belong. AccountId uint64 `json:"accountId,omitempty,string"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#accountTax". Kind string `json:"kind,omitempty"` // Rules: Tax rules. Updating the tax rules will enable US taxes (not // reversible). Defining no rules is equivalent to not charging tax at // all. Rules []*AccountTaxTaxRule `json:"rules,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AccountId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AccountTax: The tax settings of a merchant account. All methods require the admin role.
func (*AccountTax) MarshalJSON ¶
func (s *AccountTax) MarshalJSON() ([]byte, error)
type AccountTaxTaxRule ¶
type AccountTaxTaxRule struct { // Country: Country code in which tax is applicable. Country string `json:"country,omitempty"` // LocationId: Required. State (or province) is which the tax is // applicable, described by its location ID (also called criteria ID). LocationId uint64 `json:"locationId,omitempty,string"` // RatePercent: Explicit tax rate in percent, represented as a floating // point number without the percentage character. Must not be negative. RatePercent string `json:"ratePercent,omitempty"` // ShippingTaxed: If true, shipping charges are also taxed. ShippingTaxed bool `json:"shippingTaxed,omitempty"` // UseGlobalRate: Whether the tax rate is taken from a global tax table // or specified explicitly. UseGlobalRate bool `json:"useGlobalRate,omitempty"` // ForceSendFields is a list of field names (e.g. "Country") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Country") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AccountTaxTaxRule: Tax calculation rule to apply in a state or province (USA only).
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"` // OrderManager: Whether user is an order manager. OrderManager bool `json:"orderManager,omitempty"` // PaymentsAnalyst: Whether user can access payment statements. PaymentsAnalyst bool `json:"paymentsAnalyst,omitempty"` // PaymentsManager: Whether user can manage payment settings. PaymentsManager bool `json:"paymentsManager,omitempty"` // ForceSendFields is a list of field names (e.g. "Admin") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Admin") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccountUser) MarshalJSON ¶
func (s *AccountUser) MarshalJSON() ([]byte, error)
type AccountYouTubeChannelLink ¶
type AccountYouTubeChannelLink struct { // ChannelId: Channel ID. ChannelId string `json:"channelId,omitempty"` // Status: Status of the link between this Merchant Center account and // the YouTube channel. Upon retrieval, it represents the actual status // of the link and can be either `active` if it was approved in YT // Creator Studio or `pending` if it's pending approval. Upon insertion, // it represents the *intended* status of the link. Re-uploading a link // with status `active` when it's still pending or with status `pending` // when it's already active will have no effect: the status will remain // unchanged. Re-uploading a link with deprecated status `inactive` is // equivalent to not submitting the link at all and will delete the link // if it was active or cancel the link request if it was pending. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "ChannelId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ChannelId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccountYouTubeChannelLink) MarshalJSON ¶
func (s *AccountYouTubeChannelLink) 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": Only available to selected merchants. When set to `True`, this flag removes any existing claim on the requested website by another account and replaces it with a claim from this account.
type AccountsCredentialsCreateCall ¶ added in v0.41.0
type AccountsCredentialsCreateCall struct {
// contains filtered or unexported fields
}
func (*AccountsCredentialsCreateCall) Context ¶ added in v0.41.0
func (c *AccountsCredentialsCreateCall) Context(ctx context.Context) *AccountsCredentialsCreateCall
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 (*AccountsCredentialsCreateCall) Do ¶ added in v0.41.0
func (c *AccountsCredentialsCreateCall) Do(opts ...googleapi.CallOption) (*AccountCredentials, error)
Do executes the "content.accounts.credentials.create" call. Exactly one of *AccountCredentials or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountCredentials.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 (*AccountsCredentialsCreateCall) Fields ¶ added in v0.41.0
func (c *AccountsCredentialsCreateCall) Fields(s ...googleapi.Field) *AccountsCredentialsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCredentialsCreateCall) Header ¶ added in v0.41.0
func (c *AccountsCredentialsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsCredentialsService ¶ added in v0.41.0
type AccountsCredentialsService struct {
// contains filtered or unexported fields
}
func NewAccountsCredentialsService ¶ added in v0.41.0
func NewAccountsCredentialsService(s *APIService) *AccountsCredentialsService
func (*AccountsCredentialsService) Create ¶ added in v0.41.0
func (r *AccountsCredentialsService) Create(accountId int64, accountcredentials *AccountCredentials) *AccountsCredentialsCreateCall
Create: Uploads credentials for the Merchant Center account. If credentials already exist for this Merchant Center account and purpose, this method updates them.
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 ¶
type AccountsCustomBatchRequestEntry struct { // Account: The account to create or update. Only defined if the method // is `insert` or `update`. Account *Account `json:"account,omitempty"` // AccountId: The ID of the targeted account. Only defined if the method // is not `insert`. AccountId uint64 `json:"accountId,omitempty,string"` // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // Force: Whether the account should be deleted if the account has // offers. Only applicable if the method is `delete`. Force bool `json:"force,omitempty"` // LabelIds: Label IDs for the 'updatelabels' request. LabelIds googleapi.Uint64s `json:"labelIds,omitempty"` // LinkRequest: Details about the `link` request. LinkRequest *AccountsCustomBatchRequestEntryLinkRequest `json:"linkRequest,omitempty"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` // Method: The method of the batch entry. Acceptable values are: - // "claimWebsite" - "delete" - "get" - "insert" - "link" - // "update" Method string `json:"method,omitempty"` // Overwrite: Only applicable if the method is `claimwebsite`. Indicates // whether or not to take the claim from another account in case there // is a conflict. Overwrite bool `json:"overwrite,omitempty"` // View: Controls which fields are visible. Only applicable if the // method is 'get'. View string `json:"view,omitempty"` // ForceSendFields is a list of field names (e.g. "Account") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Account") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AccountsCustomBatchRequestEntry: A batch entry encoding a single non-batch accounts request.
func (*AccountsCustomBatchRequestEntry) MarshalJSON ¶
func (s *AccountsCustomBatchRequestEntry) MarshalJSON() ([]byte, error)
type AccountsCustomBatchRequestEntryLinkRequest ¶
type AccountsCustomBatchRequestEntryLinkRequest struct { // Action: Action to perform for this link. The "request" action is // only available to select merchants. Acceptable values are: - // "approve" - "remove" - "request" Action string `json:"action,omitempty"` // LinkType: Type of the link between the two accounts. Acceptable // values are: - "channelPartner" - "eCommercePlatform" LinkType string `json:"linkType,omitempty"` // LinkedAccountId: The ID of the linked account. LinkedAccountId string `json:"linkedAccountId,omitempty"` // Services: Provided services. Acceptable values are: - // "shoppingAdsProductManagement" - // "shoppingActionsProductManagement" - // "shoppingActionsOrderManagement" Services []string `json:"services,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Action") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccountsCustomBatchRequestEntryLinkRequest) MarshalJSON ¶
func (s *AccountsCustomBatchRequestEntryLinkRequest) 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 ¶
type AccountsCustomBatchResponseEntry struct { // Account: The retrieved, created, or updated account. Not defined if // the method was `delete`, `claimwebsite` or `link`. Account *Account `json:"account,omitempty"` // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#accountsCustomBatchResponseEntry" Kind string `json:"kind,omitempty"` // ForceSendFields is a list of field names (e.g. "Account") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Account") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AccountsCustomBatchResponseEntry: A batch entry encoding a single non-batch accounts response.
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) 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) 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) Force ¶
func (c *AccountsDeleteCall) Force(force bool) *AccountsDeleteCall
Force sets the optional parameter "force": Flag to delete sub-accounts with products. The default value is false.
func (*AccountsDeleteCall) Header ¶
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.
func (*AccountsGetCall) View ¶ added in v0.31.0
func (c *AccountsGetCall) View(view string) *AccountsGetCall
View sets the optional parameter "view": Controls which fields will be populated. Acceptable values are: "merchant" and "css". The default value is "merchant".
Possible values:
"MERCHANT" "CSS"
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) 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 AccountsLabelsCreateCall ¶ added in v0.34.0
type AccountsLabelsCreateCall struct {
// contains filtered or unexported fields
}
func (*AccountsLabelsCreateCall) Context ¶ added in v0.34.0
func (c *AccountsLabelsCreateCall) Context(ctx context.Context) *AccountsLabelsCreateCall
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 (*AccountsLabelsCreateCall) Do ¶ added in v0.34.0
func (c *AccountsLabelsCreateCall) Do(opts ...googleapi.CallOption) (*AccountLabel, error)
Do executes the "content.accounts.labels.create" call. Exactly one of *AccountLabel or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountLabel.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 (*AccountsLabelsCreateCall) Fields ¶ added in v0.34.0
func (c *AccountsLabelsCreateCall) Fields(s ...googleapi.Field) *AccountsLabelsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsLabelsCreateCall) Header ¶ added in v0.34.0
func (c *AccountsLabelsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsLabelsDeleteCall ¶ added in v0.34.0
type AccountsLabelsDeleteCall struct {
// contains filtered or unexported fields
}
func (*AccountsLabelsDeleteCall) Context ¶ added in v0.34.0
func (c *AccountsLabelsDeleteCall) Context(ctx context.Context) *AccountsLabelsDeleteCall
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 (*AccountsLabelsDeleteCall) Do ¶ added in v0.34.0
func (c *AccountsLabelsDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "content.accounts.labels.delete" call.
func (*AccountsLabelsDeleteCall) Fields ¶ added in v0.34.0
func (c *AccountsLabelsDeleteCall) Fields(s ...googleapi.Field) *AccountsLabelsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsLabelsDeleteCall) Header ¶ added in v0.34.0
func (c *AccountsLabelsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsLabelsListCall ¶ added in v0.34.0
type AccountsLabelsListCall struct {
// contains filtered or unexported fields
}
func (*AccountsLabelsListCall) Context ¶ added in v0.34.0
func (c *AccountsLabelsListCall) Context(ctx context.Context) *AccountsLabelsListCall
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 (*AccountsLabelsListCall) Do ¶ added in v0.34.0
func (c *AccountsLabelsListCall) Do(opts ...googleapi.CallOption) (*ListAccountLabelsResponse, error)
Do executes the "content.accounts.labels.list" call. Exactly one of *ListAccountLabelsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListAccountLabelsResponse.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 (*AccountsLabelsListCall) Fields ¶ added in v0.34.0
func (c *AccountsLabelsListCall) Fields(s ...googleapi.Field) *AccountsLabelsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsLabelsListCall) Header ¶ added in v0.34.0
func (c *AccountsLabelsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsLabelsListCall) IfNoneMatch ¶ added in v0.34.0
func (c *AccountsLabelsListCall) IfNoneMatch(entityTag string) *AccountsLabelsListCall
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 (*AccountsLabelsListCall) PageSize ¶ added in v0.34.0
func (c *AccountsLabelsListCall) PageSize(pageSize int64) *AccountsLabelsListCall
PageSize sets the optional parameter "pageSize": The maximum number of labels to return. The service may return fewer than this value. If unspecified, at most 50 labels will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
func (*AccountsLabelsListCall) PageToken ¶ added in v0.34.0
func (c *AccountsLabelsListCall) PageToken(pageToken string) *AccountsLabelsListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListAccountLabels` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccountLabels` must match the call that provided the page token.
func (*AccountsLabelsListCall) Pages ¶ added in v0.34.0
func (c *AccountsLabelsListCall) Pages(ctx context.Context, f func(*ListAccountLabelsResponse) 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 AccountsLabelsPatchCall ¶ added in v0.34.0
type AccountsLabelsPatchCall struct {
// contains filtered or unexported fields
}
func (*AccountsLabelsPatchCall) Context ¶ added in v0.34.0
func (c *AccountsLabelsPatchCall) Context(ctx context.Context) *AccountsLabelsPatchCall
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 (*AccountsLabelsPatchCall) Do ¶ added in v0.34.0
func (c *AccountsLabelsPatchCall) Do(opts ...googleapi.CallOption) (*AccountLabel, error)
Do executes the "content.accounts.labels.patch" call. Exactly one of *AccountLabel or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountLabel.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 (*AccountsLabelsPatchCall) Fields ¶ added in v0.34.0
func (c *AccountsLabelsPatchCall) Fields(s ...googleapi.Field) *AccountsLabelsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsLabelsPatchCall) Header ¶ added in v0.34.0
func (c *AccountsLabelsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsLabelsService ¶ added in v0.34.0
type AccountsLabelsService struct {
// contains filtered or unexported fields
}
func NewAccountsLabelsService ¶ added in v0.34.0
func NewAccountsLabelsService(s *APIService) *AccountsLabelsService
func (*AccountsLabelsService) Create ¶ added in v0.34.0
func (r *AccountsLabelsService) Create(accountId int64, accountlabel *AccountLabel) *AccountsLabelsCreateCall
Create: Creates a new label, not assigned to any account.
func (*AccountsLabelsService) Delete ¶ added in v0.34.0
func (r *AccountsLabelsService) Delete(accountId int64, labelId int64) *AccountsLabelsDeleteCall
Delete: Deletes a label and removes it from all accounts to which it was assigned.
func (*AccountsLabelsService) List ¶ added in v0.34.0
func (r *AccountsLabelsService) List(accountId int64) *AccountsLabelsListCall
List: Lists the labels assigned to an account.
func (*AccountsLabelsService) Patch ¶ added in v0.34.0
func (r *AccountsLabelsService) Patch(accountId int64, labelId int64, accountlabel *AccountLabel) *AccountsLabelsPatchCall
Patch: Updates a label.
type AccountsLinkCall ¶
type AccountsLinkCall struct {
// contains filtered or unexported fields
}
func (*AccountsLinkCall) Context ¶
func (c *AccountsLinkCall) Context(ctx context.Context) *AccountsLinkCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AccountsLinkCall) Do ¶
func (c *AccountsLinkCall) Do(opts ...googleapi.CallOption) (*AccountsLinkResponse, error)
Do executes the "content.accounts.link" call. Exactly one of *AccountsLinkResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountsLinkResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AccountsLinkCall) Fields ¶
func (c *AccountsLinkCall) Fields(s ...googleapi.Field) *AccountsLinkCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsLinkCall) Header ¶
func (c *AccountsLinkCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsLinkRequest ¶
type AccountsLinkRequest struct { // Action: Action to perform for this link. The "request" action is // only available to select merchants. Acceptable values are: - // "approve" - "remove" - "request" Action string `json:"action,omitempty"` // LinkType: Type of the link between the two accounts. Acceptable // values are: - "channelPartner" - "eCommercePlatform" LinkType string `json:"linkType,omitempty"` // LinkedAccountId: The ID of the linked account. LinkedAccountId string `json:"linkedAccountId,omitempty"` // Services: Acceptable values are: - "shoppingAdsProductManagement" // - "shoppingAdsOther" - "shoppingActionsProductManagement" - // "shoppingActionsOrderManagement" - "shoppingActionsOther" Services []string `json:"services,omitempty"` // ForceSendFields is a list of field names (e.g. "Action") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Action") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccountsLinkRequest) MarshalJSON ¶
func (s *AccountsLinkRequest) MarshalJSON() ([]byte, error)
type AccountsLinkResponse ¶
type AccountsLinkResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#accountsLinkResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccountsLinkResponse) MarshalJSON ¶
func (s *AccountsLinkResponse) MarshalJSON() ([]byte, error)
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) Label ¶ added in v0.31.0
func (c *AccountsListCall) Label(label uint64) *AccountsListCall
Label sets the optional parameter "label": If view is set to "css", only return accounts that are assigned label with given ID.
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.
func (*AccountsListCall) View ¶ added in v0.31.0
func (c *AccountsListCall) View(view string) *AccountsListCall
View sets the optional parameter "view": Controls which fields will be populated. Acceptable values are: "merchant" and "css". The default value is "merchant".
Possible values:
"MERCHANT" "CSS"
type AccountsListLinksResponse ¶ added in v0.16.0
type AccountsListLinksResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#accountsListLinksResponse". Kind string `json:"kind,omitempty"` // Links: The list of available links. Links []*LinkedAccount `json:"links,omitempty"` // NextPageToken: The token for the retrieval of the next page of links. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccountsListLinksResponse) MarshalJSON ¶ added in v0.16.0
func (s *AccountsListLinksResponse) MarshalJSON() ([]byte, error)
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 AccountsListlinksCall ¶ added in v0.16.0
type AccountsListlinksCall struct {
// contains filtered or unexported fields
}
func (*AccountsListlinksCall) Context ¶ added in v0.16.0
func (c *AccountsListlinksCall) Context(ctx context.Context) *AccountsListlinksCall
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 (*AccountsListlinksCall) Do ¶ added in v0.16.0
func (c *AccountsListlinksCall) Do(opts ...googleapi.CallOption) (*AccountsListLinksResponse, error)
Do executes the "content.accounts.listlinks" call. Exactly one of *AccountsListLinksResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountsListLinksResponse.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 (*AccountsListlinksCall) Fields ¶ added in v0.16.0
func (c *AccountsListlinksCall) Fields(s ...googleapi.Field) *AccountsListlinksCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsListlinksCall) Header ¶ added in v0.16.0
func (c *AccountsListlinksCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsListlinksCall) IfNoneMatch ¶ added in v0.16.0
func (c *AccountsListlinksCall) IfNoneMatch(entityTag string) *AccountsListlinksCall
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 (*AccountsListlinksCall) MaxResults ¶ added in v0.16.0
func (c *AccountsListlinksCall) MaxResults(maxResults int64) *AccountsListlinksCall
MaxResults sets the optional parameter "maxResults": The maximum number of links to return in the response, used for pagination.
func (*AccountsListlinksCall) PageToken ¶ added in v0.16.0
func (c *AccountsListlinksCall) PageToken(pageToken string) *AccountsListlinksCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
func (*AccountsListlinksCall) Pages ¶ added in v0.16.0
func (c *AccountsListlinksCall) Pages(ctx context.Context, f func(*AccountsListLinksResponse) 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 AccountsReturncarrierCreateCall ¶ added in v0.37.0
type AccountsReturncarrierCreateCall struct {
// contains filtered or unexported fields
}
func (*AccountsReturncarrierCreateCall) Context ¶ added in v0.37.0
func (c *AccountsReturncarrierCreateCall) Context(ctx context.Context) *AccountsReturncarrierCreateCall
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 (*AccountsReturncarrierCreateCall) Do ¶ added in v0.37.0
func (c *AccountsReturncarrierCreateCall) Do(opts ...googleapi.CallOption) (*AccountReturnCarrier, error)
Do executes the "content.accounts.returncarrier.create" call. Exactly one of *AccountReturnCarrier or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountReturnCarrier.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 (*AccountsReturncarrierCreateCall) Fields ¶ added in v0.37.0
func (c *AccountsReturncarrierCreateCall) Fields(s ...googleapi.Field) *AccountsReturncarrierCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsReturncarrierCreateCall) Header ¶ added in v0.37.0
func (c *AccountsReturncarrierCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsReturncarrierDeleteCall ¶ added in v0.37.0
type AccountsReturncarrierDeleteCall struct {
// contains filtered or unexported fields
}
func (*AccountsReturncarrierDeleteCall) Context ¶ added in v0.37.0
func (c *AccountsReturncarrierDeleteCall) Context(ctx context.Context) *AccountsReturncarrierDeleteCall
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 (*AccountsReturncarrierDeleteCall) Do ¶ added in v0.37.0
func (c *AccountsReturncarrierDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "content.accounts.returncarrier.delete" call.
func (*AccountsReturncarrierDeleteCall) Fields ¶ added in v0.37.0
func (c *AccountsReturncarrierDeleteCall) Fields(s ...googleapi.Field) *AccountsReturncarrierDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsReturncarrierDeleteCall) Header ¶ added in v0.37.0
func (c *AccountsReturncarrierDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsReturncarrierListCall ¶ added in v0.37.0
type AccountsReturncarrierListCall struct {
// contains filtered or unexported fields
}
func (*AccountsReturncarrierListCall) Context ¶ added in v0.37.0
func (c *AccountsReturncarrierListCall) Context(ctx context.Context) *AccountsReturncarrierListCall
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 (*AccountsReturncarrierListCall) Do ¶ added in v0.37.0
func (c *AccountsReturncarrierListCall) Do(opts ...googleapi.CallOption) (*ListAccountReturnCarrierResponse, error)
Do executes the "content.accounts.returncarrier.list" call. Exactly one of *ListAccountReturnCarrierResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListAccountReturnCarrierResponse.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 (*AccountsReturncarrierListCall) Fields ¶ added in v0.37.0
func (c *AccountsReturncarrierListCall) Fields(s ...googleapi.Field) *AccountsReturncarrierListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsReturncarrierListCall) Header ¶ added in v0.37.0
func (c *AccountsReturncarrierListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsReturncarrierListCall) IfNoneMatch ¶ added in v0.37.0
func (c *AccountsReturncarrierListCall) IfNoneMatch(entityTag string) *AccountsReturncarrierListCall
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 AccountsReturncarrierPatchCall ¶ added in v0.37.0
type AccountsReturncarrierPatchCall struct {
// contains filtered or unexported fields
}
func (*AccountsReturncarrierPatchCall) Context ¶ added in v0.37.0
func (c *AccountsReturncarrierPatchCall) Context(ctx context.Context) *AccountsReturncarrierPatchCall
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 (*AccountsReturncarrierPatchCall) Do ¶ added in v0.37.0
func (c *AccountsReturncarrierPatchCall) Do(opts ...googleapi.CallOption) (*AccountReturnCarrier, error)
Do executes the "content.accounts.returncarrier.patch" call. Exactly one of *AccountReturnCarrier or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountReturnCarrier.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 (*AccountsReturncarrierPatchCall) Fields ¶ added in v0.37.0
func (c *AccountsReturncarrierPatchCall) Fields(s ...googleapi.Field) *AccountsReturncarrierPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsReturncarrierPatchCall) Header ¶ added in v0.37.0
func (c *AccountsReturncarrierPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsReturncarrierService ¶ added in v0.37.0
type AccountsReturncarrierService struct {
// contains filtered or unexported fields
}
func NewAccountsReturncarrierService ¶ added in v0.37.0
func NewAccountsReturncarrierService(s *APIService) *AccountsReturncarrierService
func (*AccountsReturncarrierService) Create ¶ added in v0.37.0
func (r *AccountsReturncarrierService) Create(accountId int64, accountreturncarrier *AccountReturnCarrier) *AccountsReturncarrierCreateCall
Create: Links return carrier to a merchant account.
func (*AccountsReturncarrierService) Delete ¶ added in v0.37.0
func (r *AccountsReturncarrierService) Delete(accountId int64, carrierAccountId int64) *AccountsReturncarrierDeleteCall
Delete: Delete a return carrier in the merchant account.
func (*AccountsReturncarrierService) List ¶ added in v0.37.0
func (r *AccountsReturncarrierService) List(accountId int64) *AccountsReturncarrierListCall
List: Lists available return carriers in the merchant account.
func (*AccountsReturncarrierService) Patch ¶ added in v0.37.0
func (r *AccountsReturncarrierService) Patch(accountId int64, carrierAccountId int64, accountreturncarrier *AccountReturnCarrier) *AccountsReturncarrierPatchCall
Patch: Updates a return carrier in the merchant account.
type AccountsService ¶
type AccountsService struct { Credentials *AccountsCredentialsService Labels *AccountsLabelsService Returncarrier *AccountsReturncarrierService // 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.
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.
func (*AccountsService) Get ¶
func (r *AccountsService) Get(merchantId uint64, accountId uint64) *AccountsGetCall
Get: Retrieves a Merchant Center account.
func (*AccountsService) Insert ¶
func (r *AccountsService) Insert(merchantId uint64, account *Account) *AccountsInsertCall
Insert: Creates a Merchant Center sub-account.
func (*AccountsService) Link ¶
func (r *AccountsService) Link(merchantId uint64, accountId uint64, accountslinkrequest *AccountsLinkRequest) *AccountsLinkCall
Link: Performs an action on a link between two Merchant Center accounts, namely accountId and linkedAccountId.
func (*AccountsService) List ¶
func (r *AccountsService) List(merchantId uint64) *AccountsListCall
List: Lists the sub-accounts in your Merchant Center account.
func (*AccountsService) Listlinks ¶ added in v0.16.0
func (r *AccountsService) Listlinks(merchantId uint64, accountId uint64) *AccountsListlinksCall
Listlinks: Returns the list of accounts linked to your Merchant Center account.
func (*AccountsService) Update ¶
func (r *AccountsService) Update(merchantId uint64, accountId uint64, account *Account) *AccountsUpdateCall
Update: Updates a Merchant Center account. Any fields that are not provided are deleted from the resource.
func (*AccountsService) Updatelabels ¶ added in v0.31.0
func (r *AccountsService) Updatelabels(merchantId uint64, accountId uint64, accountsupdatelabelsrequest *AccountsUpdateLabelsRequest) *AccountsUpdatelabelsCall
Updatelabels: Updates labels that are assigned to the Merchant Center account by CSS user.
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) 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 AccountsUpdateLabelsRequest ¶ added in v0.31.0
type AccountsUpdateLabelsRequest struct { // LabelIds: The IDs of labels that should be assigned to the account. LabelIds googleapi.Uint64s `json:"labelIds,omitempty"` // ForceSendFields is a list of field names (e.g. "LabelIds") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LabelIds") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccountsUpdateLabelsRequest) MarshalJSON ¶ added in v0.31.0
func (s *AccountsUpdateLabelsRequest) MarshalJSON() ([]byte, error)
type AccountsUpdateLabelsResponse ¶ added in v0.31.0
type AccountsUpdateLabelsResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#accountsUpdateLabelsResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccountsUpdateLabelsResponse) MarshalJSON ¶ added in v0.31.0
func (s *AccountsUpdateLabelsResponse) MarshalJSON() ([]byte, error)
type AccountsUpdatelabelsCall ¶ added in v0.31.0
type AccountsUpdatelabelsCall struct {
// contains filtered or unexported fields
}
func (*AccountsUpdatelabelsCall) Context ¶ added in v0.31.0
func (c *AccountsUpdatelabelsCall) Context(ctx context.Context) *AccountsUpdatelabelsCall
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 (*AccountsUpdatelabelsCall) Do ¶ added in v0.31.0
func (c *AccountsUpdatelabelsCall) Do(opts ...googleapi.CallOption) (*AccountsUpdateLabelsResponse, error)
Do executes the "content.accounts.updatelabels" call. Exactly one of *AccountsUpdateLabelsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountsUpdateLabelsResponse.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 (*AccountsUpdatelabelsCall) Fields ¶ added in v0.31.0
func (c *AccountsUpdatelabelsCall) Fields(s ...googleapi.Field) *AccountsUpdatelabelsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsUpdatelabelsCall) Header ¶ added in v0.31.0
func (c *AccountsUpdatelabelsCall) 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 ¶
type AccountstatusesCustomBatchRequestEntry struct { // AccountId: The ID of the (sub-)account whose status to get. AccountId uint64 `json:"accountId,omitempty,string"` // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // Destinations: If set, only issues for the specified destinations are // returned, otherwise only issues for the Shopping destination. Destinations []string `json:"destinations,omitempty"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` // Method: The method of the batch entry. Acceptable values are: - // "get" Method string `json:"method,omitempty"` // ForceSendFields is a list of field names (e.g. "AccountId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AccountstatusesCustomBatchRequestEntry: A batch entry encoding a single non-batch accountstatuses request.
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 ¶
type AccountstatusesCustomBatchResponseEntry struct { // AccountStatus: The requested account status. Defined if and only if // the request was successful. AccountStatus *AccountStatus `json:"accountStatus,omitempty"` // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` // ForceSendFields is a list of field names (e.g. "AccountStatus") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountStatus") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AccountstatusesCustomBatchResponseEntry: A batch entry encoding a single non-batch accountstatuses response.
func (*AccountstatusesCustomBatchResponseEntry) MarshalJSON ¶
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) Destinations ¶
func (c *AccountstatusesGetCall) Destinations(destinations ...string) *AccountstatusesGetCall
Destinations sets the optional parameter "destinations": If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.
func (*AccountstatusesGetCall) Do ¶
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) Destinations ¶
func (c *AccountstatusesListCall) Destinations(destinations ...string) *AccountstatusesListCall
Destinations sets the optional parameter "destinations": If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.
func (*AccountstatusesListCall) Do ¶
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: Retrieves multiple Merchant Center account statuses in a single request.
func (*AccountstatusesService) Get ¶
func (r *AccountstatusesService) Get(merchantId uint64, accountId uint64) *AccountstatusesGetCall
Get: Retrieves the status of a Merchant Center account. No itemLevelIssues are returned for multi-client accounts.
func (*AccountstatusesService) List ¶
func (r *AccountstatusesService) List(merchantId uint64) *AccountstatusesListCall
List: Lists the statuses of the sub-accounts in your Merchant Center account.
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 ¶
type AccounttaxCustomBatchRequestEntry struct { // AccountId: The ID of the account for which to get/update account tax // settings. AccountId uint64 `json:"accountId,omitempty,string"` // AccountTax: The account tax settings to update. Only defined if the // method is `update`. AccountTax *AccountTax `json:"accountTax,omitempty"` // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` // Method: The method of the batch entry. Acceptable values are: - // "get" - "update" Method string `json:"method,omitempty"` // ForceSendFields is a list of field names (e.g. "AccountId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AccounttaxCustomBatchRequestEntry: A batch entry encoding a single non-batch accounttax request.
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 ¶
type AccounttaxCustomBatchResponseEntry struct { // AccountTax: The retrieved or updated account tax settings. AccountTax *AccountTax `json:"accountTax,omitempty"` // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#accounttaxCustomBatchResponseEntry" Kind string `json:"kind,omitempty"` // ForceSendFields is a list of field names (e.g. "AccountTax") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountTax") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AccounttaxCustomBatchResponseEntry: A batch entry encoding a single non-batch accounttax response.
func (*AccounttaxCustomBatchResponseEntry) MarshalJSON ¶
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) 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 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.
func (*AccounttaxService) List ¶
func (r *AccounttaxService) List(merchantId uint64) *AccounttaxListCall
List: Lists the tax settings of the sub-accounts in your Merchant Center account.
func (*AccounttaxService) Update ¶
func (r *AccounttaxService) Update(merchantId uint64, accountId uint64, accounttax *AccountTax) *AccounttaxUpdateCall
Update: Updates the tax settings of the account. Any fields that are not provided are deleted from the resource.
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) 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 Amount ¶
type Amount struct { // PriceAmount: [required] The pre-tax or post-tax price depending on // the location of the order. PriceAmount *Price `json:"priceAmount,omitempty"` // TaxAmount: [required] Tax value. TaxAmount *Price `json:"taxAmount,omitempty"` // ForceSendFields is a list of field names (e.g. "PriceAmount") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PriceAmount") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*Amount) MarshalJSON ¶
type BusinessDayConfig ¶ added in v0.8.0
type BusinessDayConfig struct { // BusinessDays: Regular business days. May not be empty. BusinessDays []string `json:"businessDays,omitempty"` // ForceSendFields is a list of field names (e.g. "BusinessDays") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BusinessDays") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*BusinessDayConfig) MarshalJSON ¶ added in v0.8.0
func (s *BusinessDayConfig) MarshalJSON() ([]byte, error)
type BuyOnGoogleProgramStatus ¶ added in v0.41.0
type BuyOnGoogleProgramStatus struct { // CustomerServicePendingEmail: The customer service pending email. CustomerServicePendingEmail string `json:"customerServicePendingEmail,omitempty"` // CustomerServiceVerifiedEmail: The customer service verified email. CustomerServiceVerifiedEmail string `json:"customerServiceVerifiedEmail,omitempty"` // ParticipationStage: The current participation stage for the program. // // Possible values: // "PROGRAM_PARTICIPATION_STAGE_UNSPECIFIED" - Default value when // participation stage is not set. // "NOT_ELIGIBLE" - Merchant is not eligible for onboarding to a given // program in a specific region code. // "ELIGIBLE" - Merchant is eligible for onboarding to a given program // in a specific region code. // "ONBOARDING" - Merchant is onboarding to a given program in a // specific region code. // "ACTIVE" - Merchant's program participation is active for a // specific region code. // "PAUSED" - Participation has been paused. ParticipationStage string `json:"participationStage,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "CustomerServicePendingEmail") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "CustomerServicePendingEmail") to include in API requests with the // JSON null value. By default, fields with empty values are omitted // from API requests. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
BuyOnGoogleProgramStatus: Response message for the GetProgramStatus method.
func (*BuyOnGoogleProgramStatus) MarshalJSON ¶ added in v0.41.0
func (s *BuyOnGoogleProgramStatus) MarshalJSON() ([]byte, error)
type BuyongoogleprogramsGetCall ¶ added in v0.41.0
type BuyongoogleprogramsGetCall struct {
// contains filtered or unexported fields
}
func (*BuyongoogleprogramsGetCall) Context ¶ added in v0.41.0
func (c *BuyongoogleprogramsGetCall) Context(ctx context.Context) *BuyongoogleprogramsGetCall
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 (*BuyongoogleprogramsGetCall) Do ¶ added in v0.41.0
func (c *BuyongoogleprogramsGetCall) Do(opts ...googleapi.CallOption) (*BuyOnGoogleProgramStatus, error)
Do executes the "content.buyongoogleprograms.get" call. Exactly one of *BuyOnGoogleProgramStatus or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *BuyOnGoogleProgramStatus.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 (*BuyongoogleprogramsGetCall) Fields ¶ added in v0.41.0
func (c *BuyongoogleprogramsGetCall) Fields(s ...googleapi.Field) *BuyongoogleprogramsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BuyongoogleprogramsGetCall) Header ¶ added in v0.41.0
func (c *BuyongoogleprogramsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*BuyongoogleprogramsGetCall) IfNoneMatch ¶ added in v0.41.0
func (c *BuyongoogleprogramsGetCall) IfNoneMatch(entityTag string) *BuyongoogleprogramsGetCall
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 BuyongoogleprogramsOnboardCall ¶ added in v0.41.0
type BuyongoogleprogramsOnboardCall struct {
// contains filtered or unexported fields
}
func (*BuyongoogleprogramsOnboardCall) Context ¶ added in v0.41.0
func (c *BuyongoogleprogramsOnboardCall) Context(ctx context.Context) *BuyongoogleprogramsOnboardCall
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 (*BuyongoogleprogramsOnboardCall) Do ¶ added in v0.41.0
func (c *BuyongoogleprogramsOnboardCall) Do(opts ...googleapi.CallOption) error
Do executes the "content.buyongoogleprograms.onboard" call.
func (*BuyongoogleprogramsOnboardCall) Fields ¶ added in v0.41.0
func (c *BuyongoogleprogramsOnboardCall) Fields(s ...googleapi.Field) *BuyongoogleprogramsOnboardCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BuyongoogleprogramsOnboardCall) Header ¶ added in v0.41.0
func (c *BuyongoogleprogramsOnboardCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type BuyongoogleprogramsService ¶ added in v0.41.0
type BuyongoogleprogramsService struct {
// contains filtered or unexported fields
}
func NewBuyongoogleprogramsService ¶ added in v0.41.0
func NewBuyongoogleprogramsService(s *APIService) *BuyongoogleprogramsService
func (*BuyongoogleprogramsService) Get ¶ added in v0.41.0
func (r *BuyongoogleprogramsService) Get(merchantId int64, regionCode string) *BuyongoogleprogramsGetCall
Get: Retrieves a status of BoG program for your Merchant Center account.
func (*BuyongoogleprogramsService) Onboard ¶ added in v0.41.0
func (r *BuyongoogleprogramsService) Onboard(merchantId int64, regionCode string, onboardbuyongoogleprogramrequest *OnboardBuyOnGoogleProgramRequest) *BuyongoogleprogramsOnboardCall
Onboard: Onboards BoG in your Merchant Center account. By using this method, you agree to the Terms of Service (https://merchants.google.com/mc/termsofservice/transactions/US/latest). Calling this method is only possible if the authenticated account is the same as the merchant id in the request. Calling this method multiple times will only accept Terms of Service if the latest version is not currently signed.
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 Collection ¶ added in v0.37.0
type Collection struct { // CustomLabel0: Label that you assign to a collection to help organize // bidding and reporting in Shopping campaigns. Custom label // (https://support.google.com/merchants/answer/9674217) CustomLabel0 string `json:"customLabel0,omitempty"` // CustomLabel1: Label that you assign to a collection to help organize // bidding and reporting in Shopping campaigns. CustomLabel1 string `json:"customLabel1,omitempty"` // CustomLabel2: Label that you assign to a collection to help organize // bidding and reporting in Shopping campaigns. CustomLabel2 string `json:"customLabel2,omitempty"` // CustomLabel3: Label that you assign to a collection to help organize // bidding and reporting in Shopping campaigns. CustomLabel3 string `json:"customLabel3,omitempty"` // CustomLabel4: Label that you assign to a collection to help organize // bidding and reporting in Shopping campaigns. CustomLabel4 string `json:"customLabel4,omitempty"` // FeaturedProduct: This identifies one or more products associated with // the collection. Used as a lookup to the corresponding product ID in // your product feeds. Provide a maximum of 100 featuredProduct (for // collections). Provide up to 10 featuredProduct (for Shoppable Images // only) with ID and X and Y coordinates. featured_product attribute // (https://support.google.com/merchants/answer/9703736) FeaturedProduct []*CollectionFeaturedProduct `json:"featuredProduct,omitempty"` // Headline: Your collection's name. headline attribute // (https://support.google.com/merchants/answer/9673580) Headline []string `json:"headline,omitempty"` // Id: Required. The REST ID of the collection. Content API methods that // operate on collections take this as their collectionId parameter. The // REST ID for a collection is of the form collectionId. id attribute // (https://support.google.com/merchants/answer/9649290) Id string `json:"id,omitempty"` // ImageLink: The URL of a collection’s image. image_link attribute // (https://support.google.com/merchants/answer/9703236) ImageLink []string `json:"imageLink,omitempty"` // Language: The language of a collection and the language of any // featured products linked to the collection. language attribute // (https://support.google.com/merchants/answer/9673781) Language string `json:"language,omitempty"` // Link: A collection’s landing page. URL directly linking to your // collection's page on your website. link attribute // (https://support.google.com/merchants/answer/9673983) Link string `json:"link,omitempty"` // MobileLink: A collection’s mobile-optimized landing page when you // have a different URL for mobile and desktop traffic. mobile_link // attribute (https://support.google.com/merchants/answer/9646123) MobileLink string `json:"mobileLink,omitempty"` // ProductCountry: product_country attribute // (https://support.google.com/merchants/answer/9674155) ProductCountry string `json:"productCountry,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CustomLabel0") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CustomLabel0") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Collection: The collection message.
func (*Collection) MarshalJSON ¶ added in v0.37.0
func (s *Collection) MarshalJSON() ([]byte, error)
type CollectionFeaturedProduct ¶ added in v0.37.0
type CollectionFeaturedProduct struct { // OfferId: The unique identifier for the product item. OfferId string `json:"offerId,omitempty"` // X: Required. X-coordinate of the product callout on the Shoppable // Image. X float64 `json:"x,omitempty"` // Y: Required. Y-coordinate of the product callout on the Shoppable // Image. Y float64 `json:"y,omitempty"` // ForceSendFields is a list of field names (e.g. "OfferId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "OfferId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CollectionFeaturedProduct: The message for FeaturedProduct. FeaturedProduct (https://support.google.com/merchants/answer/9703736)
func (*CollectionFeaturedProduct) MarshalJSON ¶ added in v0.37.0
func (s *CollectionFeaturedProduct) MarshalJSON() ([]byte, error)
func (*CollectionFeaturedProduct) UnmarshalJSON ¶ added in v0.37.0
func (s *CollectionFeaturedProduct) UnmarshalJSON(data []byte) error
type CollectionStatus ¶ added in v0.37.0
type CollectionStatus struct { // CollectionLevelIssuses: A list of all issues associated with the // collection. CollectionLevelIssuses []*CollectionStatusItemLevelIssue `json:"collectionLevelIssuses,omitempty"` // CreationDate: Date on which the collection has been created in ISO // 8601 (http://en.wikipedia.org/wiki/ISO_8601) format: Date, time, and // offset, e.g. "2020-01-02T09:00:00+01:00" or "2020-01-02T09:00:00Z" CreationDate string `json:"creationDate,omitempty"` // DestinationStatuses: The intended destinations for the collection. DestinationStatuses []*CollectionStatusDestinationStatus `json:"destinationStatuses,omitempty"` // Id: Required. The ID of the collection for which status is reported. Id string `json:"id,omitempty"` // LastUpdateDate: Date on which the collection has been last updated in // ISO 8601 (http://en.wikipedia.org/wiki/ISO_8601) format: Date, time, // and offset, e.g. "2020-01-02T09:00:00+01:00" or // "2020-01-02T09:00:00Z" LastUpdateDate string `json:"lastUpdateDate,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "CollectionLevelIssuses") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CollectionLevelIssuses") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
CollectionStatus: The collectionstatus message.
func (*CollectionStatus) MarshalJSON ¶ added in v0.37.0
func (s *CollectionStatus) MarshalJSON() ([]byte, error)
type CollectionStatusDestinationStatus ¶ added in v0.37.0
type CollectionStatusDestinationStatus struct { // Destination: The name of the destination Destination string `json:"destination,omitempty"` // Status: The status for the specified destination. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "Destination") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Destination") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CollectionStatusDestinationStatus: Destination status message.
func (*CollectionStatusDestinationStatus) MarshalJSON ¶ added in v0.37.0
func (s *CollectionStatusDestinationStatus) MarshalJSON() ([]byte, error)
type CollectionStatusItemLevelIssue ¶ added in v0.37.0
type CollectionStatusItemLevelIssue struct { // AttributeName: The attribute's name, if the issue is caused by a // single attribute. AttributeName string `json:"attributeName,omitempty"` // Code: The error code of the issue. Code string `json:"code,omitempty"` // Description: A short issue description in English. Description string `json:"description,omitempty"` // Destination: The destination the issue applies to. Destination string `json:"destination,omitempty"` // Detail: A detailed issue description in English. Detail string `json:"detail,omitempty"` // Documentation: The URL of a web page to help with resolving this // issue. Documentation string `json:"documentation,omitempty"` // Resolution: Whether the issue can be resolved by the merchant. Resolution string `json:"resolution,omitempty"` // Servability: How this issue affects the serving of the collection. Servability string `json:"servability,omitempty"` // ForceSendFields is a list of field names (e.g. "AttributeName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AttributeName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CollectionStatusItemLevelIssue: Issue associated with the collection.
func (*CollectionStatusItemLevelIssue) MarshalJSON ¶ added in v0.37.0
func (s *CollectionStatusItemLevelIssue) MarshalJSON() ([]byte, error)
type CollectionsCreateCall ¶ added in v0.37.0
type CollectionsCreateCall struct {
// contains filtered or unexported fields
}
func (*CollectionsCreateCall) Context ¶ added in v0.37.0
func (c *CollectionsCreateCall) Context(ctx context.Context) *CollectionsCreateCall
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 (*CollectionsCreateCall) Do ¶ added in v0.37.0
func (c *CollectionsCreateCall) Do(opts ...googleapi.CallOption) (*Collection, error)
Do executes the "content.collections.create" call. Exactly one of *Collection or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Collection.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 (*CollectionsCreateCall) Fields ¶ added in v0.37.0
func (c *CollectionsCreateCall) Fields(s ...googleapi.Field) *CollectionsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CollectionsCreateCall) Header ¶ added in v0.37.0
func (c *CollectionsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type CollectionsDeleteCall ¶ added in v0.37.0
type CollectionsDeleteCall struct {
// contains filtered or unexported fields
}
func (*CollectionsDeleteCall) Context ¶ added in v0.37.0
func (c *CollectionsDeleteCall) Context(ctx context.Context) *CollectionsDeleteCall
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 (*CollectionsDeleteCall) Do ¶ added in v0.37.0
func (c *CollectionsDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "content.collections.delete" call.
func (*CollectionsDeleteCall) Fields ¶ added in v0.37.0
func (c *CollectionsDeleteCall) Fields(s ...googleapi.Field) *CollectionsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CollectionsDeleteCall) Header ¶ added in v0.37.0
func (c *CollectionsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type CollectionsGetCall ¶ added in v0.37.0
type CollectionsGetCall struct {
// contains filtered or unexported fields
}
func (*CollectionsGetCall) Context ¶ added in v0.37.0
func (c *CollectionsGetCall) Context(ctx context.Context) *CollectionsGetCall
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 (*CollectionsGetCall) Do ¶ added in v0.37.0
func (c *CollectionsGetCall) Do(opts ...googleapi.CallOption) (*Collection, error)
Do executes the "content.collections.get" call. Exactly one of *Collection or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Collection.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 (*CollectionsGetCall) Fields ¶ added in v0.37.0
func (c *CollectionsGetCall) Fields(s ...googleapi.Field) *CollectionsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CollectionsGetCall) Header ¶ added in v0.37.0
func (c *CollectionsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*CollectionsGetCall) IfNoneMatch ¶ added in v0.37.0
func (c *CollectionsGetCall) IfNoneMatch(entityTag string) *CollectionsGetCall
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 CollectionsListCall ¶ added in v0.37.0
type CollectionsListCall struct {
// contains filtered or unexported fields
}
func (*CollectionsListCall) Context ¶ added in v0.37.0
func (c *CollectionsListCall) Context(ctx context.Context) *CollectionsListCall
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 (*CollectionsListCall) Do ¶ added in v0.37.0
func (c *CollectionsListCall) Do(opts ...googleapi.CallOption) (*ListCollectionsResponse, error)
Do executes the "content.collections.list" call. Exactly one of *ListCollectionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListCollectionsResponse.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 (*CollectionsListCall) Fields ¶ added in v0.37.0
func (c *CollectionsListCall) Fields(s ...googleapi.Field) *CollectionsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CollectionsListCall) Header ¶ added in v0.37.0
func (c *CollectionsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*CollectionsListCall) IfNoneMatch ¶ added in v0.37.0
func (c *CollectionsListCall) IfNoneMatch(entityTag string) *CollectionsListCall
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 (*CollectionsListCall) PageSize ¶ added in v0.37.0
func (c *CollectionsListCall) PageSize(pageSize int64) *CollectionsListCall
PageSize sets the optional parameter "pageSize": The maximum number of collections to return in the response, used for paging. Defaults to 50; values above 1000 will be coerced to 1000.
func (*CollectionsListCall) PageToken ¶ added in v0.37.0
func (c *CollectionsListCall) PageToken(pageToken string) *CollectionsListCall
PageToken sets the optional parameter "pageToken": Token (if provided) to retrieve the subsequent page. All other parameters must match the original call that provided the page token.
func (*CollectionsListCall) Pages ¶ added in v0.37.0
func (c *CollectionsListCall) Pages(ctx context.Context, f func(*ListCollectionsResponse) 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 CollectionsService ¶ added in v0.37.0
type CollectionsService struct {
// contains filtered or unexported fields
}
func NewCollectionsService ¶ added in v0.37.0
func NewCollectionsService(s *APIService) *CollectionsService
func (*CollectionsService) Create ¶ added in v0.37.0
func (r *CollectionsService) Create(merchantId int64, collection *Collection) *CollectionsCreateCall
Create: Uploads a collection to your Merchant Center account. If a collection with the same collectionId already exists, this method updates that entry. In each update, the collection is completely replaced by the fields in the body of the update request.
func (*CollectionsService) Delete ¶ added in v0.37.0
func (r *CollectionsService) Delete(merchantId int64, collectionId string) *CollectionsDeleteCall
Delete: Deletes a collection from your Merchant Center account.
func (*CollectionsService) Get ¶ added in v0.37.0
func (r *CollectionsService) Get(merchantId int64, collectionId string) *CollectionsGetCall
Get: Retrieves a collection from your Merchant Center account.
func (*CollectionsService) List ¶ added in v0.37.0
func (r *CollectionsService) List(merchantId int64) *CollectionsListCall
List: Lists the collections in your Merchant Center account. The response might contain fewer items than specified by page_size. Rely on next_page_token to determine if there are more items to be requested.
type CollectionstatusesGetCall ¶ added in v0.37.0
type CollectionstatusesGetCall struct {
// contains filtered or unexported fields
}
func (*CollectionstatusesGetCall) Context ¶ added in v0.37.0
func (c *CollectionstatusesGetCall) Context(ctx context.Context) *CollectionstatusesGetCall
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 (*CollectionstatusesGetCall) Do ¶ added in v0.37.0
func (c *CollectionstatusesGetCall) Do(opts ...googleapi.CallOption) (*CollectionStatus, error)
Do executes the "content.collectionstatuses.get" call. Exactly one of *CollectionStatus or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CollectionStatus.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 (*CollectionstatusesGetCall) Fields ¶ added in v0.37.0
func (c *CollectionstatusesGetCall) Fields(s ...googleapi.Field) *CollectionstatusesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CollectionstatusesGetCall) Header ¶ added in v0.37.0
func (c *CollectionstatusesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*CollectionstatusesGetCall) IfNoneMatch ¶ added in v0.37.0
func (c *CollectionstatusesGetCall) IfNoneMatch(entityTag string) *CollectionstatusesGetCall
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 CollectionstatusesListCall ¶ added in v0.37.0
type CollectionstatusesListCall struct {
// contains filtered or unexported fields
}
func (*CollectionstatusesListCall) Context ¶ added in v0.37.0
func (c *CollectionstatusesListCall) Context(ctx context.Context) *CollectionstatusesListCall
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 (*CollectionstatusesListCall) Do ¶ added in v0.37.0
func (c *CollectionstatusesListCall) Do(opts ...googleapi.CallOption) (*ListCollectionStatusesResponse, error)
Do executes the "content.collectionstatuses.list" call. Exactly one of *ListCollectionStatusesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListCollectionStatusesResponse.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 (*CollectionstatusesListCall) Fields ¶ added in v0.37.0
func (c *CollectionstatusesListCall) Fields(s ...googleapi.Field) *CollectionstatusesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CollectionstatusesListCall) Header ¶ added in v0.37.0
func (c *CollectionstatusesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*CollectionstatusesListCall) IfNoneMatch ¶ added in v0.37.0
func (c *CollectionstatusesListCall) IfNoneMatch(entityTag string) *CollectionstatusesListCall
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 (*CollectionstatusesListCall) PageSize ¶ added in v0.37.0
func (c *CollectionstatusesListCall) PageSize(pageSize int64) *CollectionstatusesListCall
PageSize sets the optional parameter "pageSize": The maximum number of collection statuses to return in the response, used for paging. Defaults to 50; values above 1000 will be coerced to 1000.
func (*CollectionstatusesListCall) PageToken ¶ added in v0.37.0
func (c *CollectionstatusesListCall) PageToken(pageToken string) *CollectionstatusesListCall
PageToken sets the optional parameter "pageToken": Token (if provided) to retrieve the subsequent page. All other parameters must match the original call that provided the page token.
func (*CollectionstatusesListCall) Pages ¶ added in v0.37.0
func (c *CollectionstatusesListCall) Pages(ctx context.Context, f func(*ListCollectionStatusesResponse) 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 CollectionstatusesService ¶ added in v0.37.0
type CollectionstatusesService struct {
// contains filtered or unexported fields
}
func NewCollectionstatusesService ¶ added in v0.37.0
func NewCollectionstatusesService(s *APIService) *CollectionstatusesService
func (*CollectionstatusesService) Get ¶ added in v0.37.0
func (r *CollectionstatusesService) Get(merchantId int64, collectionId string) *CollectionstatusesGetCall
Get: Gets the status of a collection from your Merchant Center account.
func (*CollectionstatusesService) List ¶ added in v0.37.0
func (r *CollectionstatusesService) List(merchantId int64) *CollectionstatusesListCall
List: Lists the statuses of the collections in your Merchant Center account.
type Css ¶ added in v0.34.0
type Css struct { // CssDomainId: Output only. Immutable. The CSS domain ID. CssDomainId int64 `json:"cssDomainId,omitempty,string"` // CssGroupId: Output only. Immutable. The ID of the CSS group this CSS // domain is affiliated with. Only populated for CSS group users. CssGroupId int64 `json:"cssGroupId,omitempty,string"` // DisplayName: Output only. Immutable. The CSS domain's display name, // used when space is constrained. DisplayName string `json:"displayName,omitempty"` // FullName: Output only. Immutable. The CSS domain's full name. FullName string `json:"fullName,omitempty"` // HomepageUri: Output only. Immutable. The CSS domain's homepage. HomepageUri string `json:"homepageUri,omitempty"` // LabelIds: A list of label IDs that are assigned to this CSS domain by // its CSS group. Only populated for CSS group users. LabelIds googleapi.Int64s `json:"labelIds,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CssDomainId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CssDomainId") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Css: Information about CSS domain.
func (*Css) MarshalJSON ¶ added in v0.34.0
type CssesGetCall ¶ added in v0.34.0
type CssesGetCall struct {
// contains filtered or unexported fields
}
func (*CssesGetCall) Context ¶ added in v0.34.0
func (c *CssesGetCall) Context(ctx context.Context) *CssesGetCall
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 (*CssesGetCall) Do ¶ added in v0.34.0
func (c *CssesGetCall) Do(opts ...googleapi.CallOption) (*Css, error)
Do executes the "content.csses.get" call. Exactly one of *Css or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Css.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 (*CssesGetCall) Fields ¶ added in v0.34.0
func (c *CssesGetCall) Fields(s ...googleapi.Field) *CssesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CssesGetCall) Header ¶ added in v0.34.0
func (c *CssesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*CssesGetCall) IfNoneMatch ¶ added in v0.34.0
func (c *CssesGetCall) IfNoneMatch(entityTag string) *CssesGetCall
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 CssesListCall ¶ added in v0.34.0
type CssesListCall struct {
// contains filtered or unexported fields
}
func (*CssesListCall) Context ¶ added in v0.34.0
func (c *CssesListCall) Context(ctx context.Context) *CssesListCall
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 (*CssesListCall) Do ¶ added in v0.34.0
func (c *CssesListCall) Do(opts ...googleapi.CallOption) (*ListCssesResponse, error)
Do executes the "content.csses.list" call. Exactly one of *ListCssesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListCssesResponse.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 (*CssesListCall) Fields ¶ added in v0.34.0
func (c *CssesListCall) Fields(s ...googleapi.Field) *CssesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CssesListCall) Header ¶ added in v0.34.0
func (c *CssesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*CssesListCall) IfNoneMatch ¶ added in v0.34.0
func (c *CssesListCall) IfNoneMatch(entityTag string) *CssesListCall
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 (*CssesListCall) PageSize ¶ added in v0.34.0
func (c *CssesListCall) PageSize(pageSize int64) *CssesListCall
PageSize sets the optional parameter "pageSize": The maximum number of CSS domains to return. The service may return fewer than this value. If unspecified, at most 50 CSS domains will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
func (*CssesListCall) PageToken ¶ added in v0.34.0
func (c *CssesListCall) PageToken(pageToken string) *CssesListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListCsses` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListCsses` must match the call that provided the page token.
func (*CssesListCall) Pages ¶ added in v0.34.0
func (c *CssesListCall) Pages(ctx context.Context, f func(*ListCssesResponse) 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 CssesService ¶ added in v0.34.0
type CssesService struct {
// contains filtered or unexported fields
}
func NewCssesService ¶ added in v0.34.0
func NewCssesService(s *APIService) *CssesService
func (*CssesService) Get ¶ added in v0.34.0
func (r *CssesService) Get(cssGroupId int64, cssDomainId int64) *CssesGetCall
Get: Retrieves a single CSS domain by ID.
func (*CssesService) List ¶ added in v0.34.0
func (r *CssesService) List(cssGroupId int64) *CssesListCall
List: Lists CSS domains affiliated with a CSS group.
func (*CssesService) Updatelabels ¶ added in v0.34.0
func (r *CssesService) Updatelabels(cssGroupId int64, cssDomainId int64, labelids *LabelIds) *CssesUpdatelabelsCall
Updatelabels: Updates labels that are assigned to a CSS domain by its CSS group.
type CssesUpdatelabelsCall ¶ added in v0.34.0
type CssesUpdatelabelsCall struct {
// contains filtered or unexported fields
}
func (*CssesUpdatelabelsCall) Context ¶ added in v0.34.0
func (c *CssesUpdatelabelsCall) Context(ctx context.Context) *CssesUpdatelabelsCall
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 (*CssesUpdatelabelsCall) Do ¶ added in v0.34.0
func (c *CssesUpdatelabelsCall) Do(opts ...googleapi.CallOption) (*Css, error)
Do executes the "content.csses.updatelabels" call. Exactly one of *Css or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Css.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 (*CssesUpdatelabelsCall) Fields ¶ added in v0.34.0
func (c *CssesUpdatelabelsCall) Fields(s ...googleapi.Field) *CssesUpdatelabelsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CssesUpdatelabelsCall) Header ¶ added in v0.34.0
func (c *CssesUpdatelabelsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type CustomAttribute ¶
type CustomAttribute struct { // GroupValues: Subattributes within this attribute group. Exactly one // of value or groupValues must be provided. GroupValues []*CustomAttribute `json:"groupValues,omitempty"` // Name: The name of the attribute. Underscores will be replaced by // spaces upon insertion. Name string `json:"name,omitempty"` // Value: The value of the attribute. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "GroupValues") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "GroupValues") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*CustomAttribute) MarshalJSON ¶
func (s *CustomAttribute) MarshalJSON() ([]byte, error)
type CustomerReturnReason ¶
type CustomerReturnReason struct { // Description: Description of the reason. Description string `json:"description,omitempty"` // ReasonCode: Code of the return reason. Acceptable values are: - // "betterPriceFound" - "changedMind" - "damagedOrDefectiveItem" - // "didNotMatchDescription" - "doesNotFit" - "expiredItem" - // "incorrectItemReceived" - "noLongerNeeded" - "notSpecified" - // "orderedWrongItem" - "other" - "qualityNotExpected" - // "receivedTooLate" - "undeliverable" ReasonCode string `json:"reasonCode,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*CustomerReturnReason) MarshalJSON ¶
func (s *CustomerReturnReason) MarshalJSON() ([]byte, error)
type CutoffTime ¶
type CutoffTime struct { // Hour: Hour of the cutoff time until which an order has to be placed // to be processed in the same day. Required. Hour int64 `json:"hour,omitempty"` // Minute: Minute of the cutoff time until which an order has to be // placed to be processed in the same day. Required. Minute int64 `json:"minute,omitempty"` // Timezone: Timezone identifier for the cutoff time. A list of // identifiers can be found in the AdWords API documentation. E.g. // "Europe/Zurich". Required. Timezone string `json:"timezone,omitempty"` // ForceSendFields is a list of field names (e.g. "Hour") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Hour") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*CutoffTime) MarshalJSON ¶
func (s *CutoffTime) MarshalJSON() ([]byte, error)
type Datafeed ¶
type Datafeed struct { // AttributeLanguage: The two-letter ISO 639-1 language in which the // attributes are defined in the data feed. AttributeLanguage string `json:"attributeLanguage,omitempty"` // ContentType: Required. The type of data feed. For product inventory // feeds, only feeds for local stores, not online stores, are supported. // Acceptable values are: - "local products" - "product inventory" - // "products" ContentType string `json:"contentType,omitempty"` // FetchSchedule: Fetch schedule for the feed file. FetchSchedule *DatafeedFetchSchedule `json:"fetchSchedule,omitempty"` // FileName: Required. The filename of the feed. All feeds must have a // unique file name. FileName string `json:"fileName,omitempty"` // Format: Format of the feed file. Format *DatafeedFormat `json:"format,omitempty"` // Id: Required for update. The ID of the data feed. Id int64 `json:"id,omitempty,string"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#datafeed" Kind string `json:"kind,omitempty"` // Name: Required for insert. A descriptive name of the data feed. Name string `json:"name,omitempty"` // Targets: The targets this feed should apply to (country, language, // destinations). Targets []*DatafeedTarget `json:"targets,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AttributeLanguage") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AttributeLanguage") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
Datafeed: Datafeed configuration data.
func (*Datafeed) MarshalJSON ¶
type DatafeedFetchSchedule ¶
type DatafeedFetchSchedule struct { // DayOfMonth: The day of the month the feed file should be fetched // (1-31). DayOfMonth int64 `json:"dayOfMonth,omitempty"` // FetchUrl: The URL where the feed file can be fetched. Google Merchant // Center will support automatic scheduled uploads using the HTTP, // HTTPS, FTP, or SFTP protocols, so the value will need to be a valid // link using one of those four protocols. FetchUrl string `json:"fetchUrl,omitempty"` // Hour: The hour of the day the feed file should be fetched (0-23). Hour int64 `json:"hour,omitempty"` // MinuteOfHour: The minute of the hour the feed file should be fetched // (0-59). Read-only. MinuteOfHour int64 `json:"minuteOfHour,omitempty"` // Password: An optional password for fetch_url. Password string `json:"password,omitempty"` // Paused: Whether the scheduled fetch is paused or not. Paused bool `json:"paused,omitempty"` // TimeZone: Time zone used for schedule. UTC by default. E.g., // "America/Los_Angeles". TimeZone string `json:"timeZone,omitempty"` // Username: An optional user name for fetch_url. Username string `json:"username,omitempty"` // Weekday: The day of the week the feed file should be fetched. // Acceptable values are: - "monday" - "tuesday" - "wednesday" - // "thursday" - "friday" - "saturday" - "sunday" Weekday string `json:"weekday,omitempty"` // ForceSendFields is a list of field names (e.g. "DayOfMonth") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DayOfMonth") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DatafeedFetchSchedule: The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required.
func (*DatafeedFetchSchedule) MarshalJSON ¶
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. Acceptable values // are: - "pipe" - "tab" - "tilde" ColumnDelimiter string `json:"columnDelimiter,omitempty"` // FileEncoding: Character encoding scheme of the data feed. If not // specified, the encoding will be auto-detected. Acceptable values are: // - "latin-1" - "utf-16be" - "utf-16le" - "utf-8" - // "windows-1252" FileEncoding string `json:"fileEncoding,omitempty"` // QuotingMode: Specifies how double quotes are interpreted. If not // specified, the mode will be auto-detected. Ignored for non-DSV data // feeds. Acceptable values are: - "normal character" - "value // quoting" QuotingMode string `json:"quotingMode,omitempty"` // ForceSendFields is a list of field names (e.g. "ColumnDelimiter") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ColumnDelimiter") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*DatafeedFormat) MarshalJSON ¶
func (s *DatafeedFormat) MarshalJSON() ([]byte, error)
type DatafeedStatus ¶
type DatafeedStatus struct { // Country: The country for which the status is reported, represented as // a CLDR territory code. Country string `json:"country,omitempty"` // DatafeedId: The ID of the feed for which the status is reported. DatafeedId uint64 `json:"datafeedId,omitempty,string"` // Errors: The list of errors occurring in the feed. Errors []*DatafeedStatusError `json:"errors,omitempty"` // ItemsTotal: The number of items in the feed that were processed. ItemsTotal uint64 `json:"itemsTotal,omitempty,string"` // ItemsValid: The number of items in the feed that were valid. ItemsValid uint64 `json:"itemsValid,omitempty,string"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#datafeedStatus" Kind string `json:"kind,omitempty"` // Language: The two-letter ISO 639-1 language for which the status is // reported. Language string `json:"language,omitempty"` // LastUploadDate: The last date at which the feed was uploaded. LastUploadDate string `json:"lastUploadDate,omitempty"` // ProcessingStatus: The processing status of the feed. Acceptable // values are: - ""failure": The feed could not be processed or all // items had errors." - "in progress": The feed is being processed. - // "none": The feed has not yet been processed. For example, a feed // that has never been uploaded will have this processing status. - // "success": The feed was processed successfully, though some items // might have had errors. ProcessingStatus string `json:"processingStatus,omitempty"` // Warnings: The list of errors occurring in the feed. Warnings []*DatafeedStatusError `json:"warnings,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Country") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Country") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DatafeedStatus: The status of a datafeed, i.e., the result of the last retrieval of the datafeed computed asynchronously when the feed processing is finished.
func (*DatafeedStatus) MarshalJSON ¶
func (s *DatafeedStatus) MarshalJSON() ([]byte, error)
type DatafeedStatusError ¶
type DatafeedStatusError struct { // Code: The code of the error, e.g., "validation/invalid_value". Code string `json:"code,omitempty"` // Count: The number of occurrences of the error in the feed. Count uint64 `json:"count,omitempty,string"` // Examples: A list of example occurrences of the error, grouped by // product. Examples []*DatafeedStatusExample `json:"examples,omitempty"` // Message: The error message, e.g., "Invalid price". Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Code") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DatafeedStatusError: An error occurring in the feed, like "invalid price".
func (*DatafeedStatusError) MarshalJSON ¶
func (s *DatafeedStatusError) MarshalJSON() ([]byte, error)
type DatafeedStatusExample ¶
type DatafeedStatusExample struct { // ItemId: The ID of the example item. ItemId string `json:"itemId,omitempty"` // LineNumber: Line number in the data feed where the example is found. LineNumber uint64 `json:"lineNumber,omitempty,string"` // Value: The problematic value. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "ItemId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ItemId") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DatafeedStatusExample: An example occurrence for a particular error.
func (*DatafeedStatusExample) MarshalJSON ¶
func (s *DatafeedStatusExample) MarshalJSON() ([]byte, error)
type DatafeedTarget ¶
type DatafeedTarget struct { // Country: The country where the items in the feed will be included in // the search index, represented as a CLDR territory code. Country string `json:"country,omitempty"` // ExcludedDestinations: The list of destinations to exclude for this // target (corresponds to unchecked check boxes in Merchant Center). ExcludedDestinations []string `json:"excludedDestinations,omitempty"` // IncludedDestinations: The list of destinations to include for this // target (corresponds to checked check boxes in Merchant Center). // Default destinations are always included unless provided in // `excludedDestinations`. List of supported destinations (if available // to the account): - DisplayAds - Shopping - ShoppingActions - // SurfacesAcrossGoogle IncludedDestinations []string `json:"includedDestinations,omitempty"` // Language: The two-letter ISO 639-1 language of the items in the feed. // Must be a valid language for `targets[].country`. Language string `json:"language,omitempty"` // ForceSendFields is a list of field names (e.g. "Country") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Country") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*DatafeedTarget) MarshalJSON ¶
func (s *DatafeedTarget) 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 ¶
type DatafeedsCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // Datafeed: The data feed to insert. Datafeed *Datafeed `json:"datafeed,omitempty"` // DatafeedId: The ID of the data feed to get, delete or fetch. DatafeedId uint64 `json:"datafeedId,omitempty,string"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` // Method: The method of the batch entry. Acceptable values are: - // "delete" - "fetchNow" - "get" - "insert" - "update" Method string `json:"method,omitempty"` // ForceSendFields is a list of field names (e.g. "BatchId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BatchId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DatafeedsCustomBatchRequestEntry: A batch entry encoding a single non-batch datafeeds request.
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 ¶
type DatafeedsCustomBatchResponseEntry struct { // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` // Datafeed: The requested data feed. Defined if and only if the request // was successful. Datafeed *Datafeed `json:"datafeed,omitempty"` // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` // ForceSendFields is a list of field names (e.g. "BatchId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BatchId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DatafeedsCustomBatchResponseEntry: A batch entry encoding a single non-batch datafeeds response.
func (*DatafeedsCustomBatchResponseEntry) MarshalJSON ¶
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) 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) 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 DatafeedsFetchNowResponse ¶
type DatafeedsFetchNowResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#datafeedsFetchNowResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*DatafeedsFetchNowResponse) MarshalJSON ¶
func (s *DatafeedsFetchNowResponse) MarshalJSON() ([]byte, error)
type DatafeedsFetchnowCall ¶
type DatafeedsFetchnowCall struct {
// contains filtered or unexported fields
}
func (*DatafeedsFetchnowCall) Context ¶
func (c *DatafeedsFetchnowCall) Context(ctx context.Context) *DatafeedsFetchnowCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DatafeedsFetchnowCall) Do ¶
func (c *DatafeedsFetchnowCall) Do(opts ...googleapi.CallOption) (*DatafeedsFetchNowResponse, error)
Do executes the "content.datafeeds.fetchnow" call. Exactly one of *DatafeedsFetchNowResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DatafeedsFetchNowResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DatafeedsFetchnowCall) Fields ¶
func (c *DatafeedsFetchnowCall) Fields(s ...googleapi.Field) *DatafeedsFetchnowCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*DatafeedsFetchnowCall) Header ¶
func (c *DatafeedsFetchnowCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type DatafeedsGetCall ¶
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) 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 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: Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.
func (*DatafeedsService) Delete ¶
func (r *DatafeedsService) Delete(merchantId uint64, datafeedId uint64) *DatafeedsDeleteCall
Delete: Deletes a datafeed configuration from your Merchant Center account.
func (*DatafeedsService) Fetchnow ¶
func (r *DatafeedsService) Fetchnow(merchantId uint64, datafeedId uint64) *DatafeedsFetchnowCall
Fetchnow: Invokes a fetch for the datafeed in your Merchant Center account. If you need to call this method more than once per day, we recommend you use the Products service to update your product data.
func (*DatafeedsService) Get ¶
func (r *DatafeedsService) Get(merchantId uint64, datafeedId uint64) *DatafeedsGetCall
Get: Retrieves a datafeed configuration from your Merchant Center account.
func (*DatafeedsService) Insert ¶
func (r *DatafeedsService) Insert(merchantId uint64, datafeed *Datafeed) *DatafeedsInsertCall
Insert: Registers a datafeed configuration with your Merchant Center account.
func (*DatafeedsService) List ¶
func (r *DatafeedsService) List(merchantId uint64) *DatafeedsListCall
List: Lists the configurations for datafeeds in your Merchant Center account.
func (*DatafeedsService) Update ¶
func (r *DatafeedsService) Update(merchantId uint64, datafeedId uint64, datafeed *Datafeed) *DatafeedsUpdateCall
Update: Updates a datafeed configuration of your Merchant Center account. Any fields that are not provided are deleted from the resource.
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) 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 ¶
type DatafeedstatusesCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // Country: The country for which to get the datafeed status. If this // parameter is provided then language must also be provided. Note that // for multi-target datafeeds this parameter is required. Country string `json:"country,omitempty"` // DatafeedId: The ID of the data feed to get. DatafeedId uint64 `json:"datafeedId,omitempty,string"` // Language: The language for which to get the datafeed status. If this // parameter is provided then country must also be provided. Note that // for multi-target datafeeds this parameter is required. Language string `json:"language,omitempty"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` // Method: The method of the batch entry. Acceptable values are: - // "get" Method string `json:"method,omitempty"` // ForceSendFields is a list of field names (e.g. "BatchId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BatchId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DatafeedstatusesCustomBatchRequestEntry: A batch entry encoding a single non-batch datafeedstatuses request.
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 ¶
type DatafeedstatusesCustomBatchResponseEntry struct { // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` // DatafeedStatus: The requested data feed status. Defined if and only // if the request was successful. DatafeedStatus *DatafeedStatus `json:"datafeedStatus,omitempty"` // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` // ForceSendFields is a list of field names (e.g. "BatchId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BatchId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DatafeedstatusesCustomBatchResponseEntry: A batch entry encoding a single non-batch datafeedstatuses response.
func (*DatafeedstatusesCustomBatchResponseEntry) MarshalJSON ¶
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) Country ¶
func (c *DatafeedstatusesGetCall) Country(country string) *DatafeedstatusesGetCall
Country sets the optional parameter "country": The country for which to get the datafeed status. If this parameter is provided then language must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target.
func (*DatafeedstatusesGetCall) Do ¶
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.
func (*DatafeedstatusesGetCall) Language ¶
func (c *DatafeedstatusesGetCall) Language(language string) *DatafeedstatusesGetCall
Language sets the optional parameter "language": The language for which to get the datafeed status. If this parameter is provided then country must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target.
type DatafeedstatusesListCall ¶
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: Gets multiple Merchant Center datafeed statuses in a single request.
func (*DatafeedstatusesService) Get ¶
func (r *DatafeedstatusesService) Get(merchantId uint64, datafeedId uint64) *DatafeedstatusesGetCall
Get: Retrieves the status of a datafeed from your Merchant Center account.
func (*DatafeedstatusesService) List ¶
func (r *DatafeedstatusesService) List(merchantId uint64) *DatafeedstatusesListCall
List: Lists the statuses of the datafeeds in your Merchant Center account.
type Date ¶ added in v0.37.0
type Date struct { // Day: Day of a month. Must be from 1 to 31 and valid for the year and // month, or 0 to specify a year by itself or a year and month where the // day isn't significant. Day int64 `json:"day,omitempty"` // Month: Month of a year. Must be from 1 to 12, or 0 to specify a year // without a month and day. Month int64 `json:"month,omitempty"` // Year: Year of the date. Must be from 1 to 9999, or 0 to specify a // date without a year. Year int64 `json:"year,omitempty"` // ForceSendFields is a list of field names (e.g. "Day") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Day") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Date: Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values * A month and day value, with a zero year, such as an anniversary * A year on its own, with zero month and day values * A year and month value, with a zero day, such as a credit card expiration date Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
func (*Date) MarshalJSON ¶ added in v0.37.0
type DateTime ¶ added in v0.36.0
type DateTime struct { // Day: Required. Day of month. Must be from 1 to 31 and valid for the // year and month. Day int64 `json:"day,omitempty"` // Hours: Required. Hours of day in 24 hour format. Should be from 0 to // 23. An API may choose to allow the value "24:00:00" for scenarios // like business closing time. Hours int64 `json:"hours,omitempty"` // Minutes: Required. Minutes of hour of day. Must be from 0 to 59. Minutes int64 `json:"minutes,omitempty"` // Month: Required. Month of year. Must be from 1 to 12. Month int64 `json:"month,omitempty"` // Nanos: Required. Fractions of seconds in nanoseconds. Must be from 0 // to 999,999,999. Nanos int64 `json:"nanos,omitempty"` // Seconds: Required. Seconds of minutes of the time. Must normally be // from 0 to 59. An API may allow the value 60 if it allows // leap-seconds. Seconds int64 `json:"seconds,omitempty"` // TimeZone: Time zone. TimeZone *TimeZone `json:"timeZone,omitempty"` // UtcOffset: UTC offset. Must be whole seconds, between -18 hours and // +18 hours. For example, a UTC offset of -4:00 would be represented as // { seconds: -14400 }. UtcOffset string `json:"utcOffset,omitempty"` // Year: Optional. Year of date. Must be from 1 to 9999, or 0 if // specifying a datetime without a year. Year int64 `json:"year,omitempty"` // ForceSendFields is a list of field names (e.g. "Day") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Day") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DateTime: Represents civil time (or occasionally physical time). This type can represent a civil time in one of a few possible ways: * When utc_offset is set and time_zone is unset: a civil time on a calendar day with a particular offset from UTC. * When time_zone is set and utc_offset is unset: a civil time on a calendar day in a particular time zone. * When neither time_zone nor utc_offset is set: a civil time on a calendar day in local time. The date is relative to the Proleptic Gregorian Calendar. If year is 0, the DateTime is considered not to have a specific year. month and day must have valid, non-zero values. This type may also be used to represent a physical time if all the date and time fields are set and either case of the `time_offset` oneof is set. Consider using `Timestamp` message for physical time instead. If your use case also would like to store the user's timezone, that can be done in another field. This type is more flexible than some applications may want. Make sure to document and validate your application's limitations.
func (*DateTime) MarshalJSON ¶ added in v0.36.0
type DeliveryTime ¶
type DeliveryTime struct { // CutoffTime: Business days cutoff time definition. If not configured // the cutoff time will be defaulted to 8AM PST. CutoffTime *CutoffTime `json:"cutoffTime,omitempty"` // HandlingBusinessDayConfig: The business days during which orders can // be handled. If not provided, Monday to Friday business days will be // assumed. HandlingBusinessDayConfig *BusinessDayConfig `json:"handlingBusinessDayConfig,omitempty"` // HolidayCutoffs: Holiday cutoff definitions. If configured, they // specify order cutoff times for holiday-specific shipping. HolidayCutoffs []*HolidayCutoff `json:"holidayCutoffs,omitempty"` // MaxHandlingTimeInDays: Maximum number of business days spent before // an order is shipped. 0 means same day shipped, 1 means next day // shipped. Must be greater than or equal to `minHandlingTimeInDays`. MaxHandlingTimeInDays int64 `json:"maxHandlingTimeInDays,omitempty"` // MaxTransitTimeInDays: Maximum number of business days that is spent // in transit. 0 means same day delivery, 1 means next day delivery. // Must be greater than or equal to `minTransitTimeInDays`. MaxTransitTimeInDays int64 `json:"maxTransitTimeInDays,omitempty"` // MinHandlingTimeInDays: Minimum number of business days spent before // an order is shipped. 0 means same day shipped, 1 means next day // shipped. MinHandlingTimeInDays int64 `json:"minHandlingTimeInDays,omitempty"` // MinTransitTimeInDays: Minimum number of business days that is spent // in transit. 0 means same day delivery, 1 means next day delivery. // Either `{min,max}TransitTimeInDays` or `transitTimeTable` must be // set, but not both. MinTransitTimeInDays int64 `json:"minTransitTimeInDays,omitempty"` // TransitBusinessDayConfig: The business days during which orders can // be in-transit. If not provided, Monday to Friday business days will // be assumed. TransitBusinessDayConfig *BusinessDayConfig `json:"transitBusinessDayConfig,omitempty"` // TransitTimeTable: Transit time table, number of business days spent // in transit based on row and column dimensions. Either // `{min,max}TransitTimeInDays` or `transitTimeTable` can be set, but // not both. TransitTimeTable *TransitTable `json:"transitTimeTable,omitempty"` // ForceSendFields is a list of field names (e.g. "CutoffTime") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CutoffTime") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*DeliveryTime) MarshalJSON ¶
func (s *DeliveryTime) MarshalJSON() ([]byte, error)
type Error ¶
type Error struct { // Domain: The domain of the error. Domain string `json:"domain,omitempty"` // Message: A description of the error. Message string `json:"message,omitempty"` // Reason: The error code. Reason string `json:"reason,omitempty"` // ForceSendFields is a list of field names (e.g. "Domain") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Domain") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Error: An error returned by the API.
func (*Error) MarshalJSON ¶
type Errors ¶
type Errors struct { // Code: The HTTP status of the first error in `errors`. Code int64 `json:"code,omitempty"` // Errors: A list of errors. Errors []*Error `json:"errors,omitempty"` // Message: The message of the first error in `errors`. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Code") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Errors: A list of errors returned by a failed batch entry.
func (*Errors) MarshalJSON ¶
type GmbAccounts ¶
type GmbAccounts struct { // AccountId: The ID of the Merchant Center account. AccountId uint64 `json:"accountId,omitempty,string"` // GmbAccounts: A list of GMB accounts which are available to the // merchant. GmbAccounts []*GmbAccountsGmbAccount `json:"gmbAccounts,omitempty"` // ForceSendFields is a list of field names (e.g. "AccountId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*GmbAccounts) MarshalJSON ¶
func (s *GmbAccounts) MarshalJSON() ([]byte, error)
type GmbAccountsGmbAccount ¶
type GmbAccountsGmbAccount struct { // Email: The email which identifies the GMB account. Email string `json:"email,omitempty"` // ListingCount: Number of listings under this account. ListingCount uint64 `json:"listingCount,omitempty,string"` // Name: The name of the GMB account. Name string `json:"name,omitempty"` // Type: The type of the GMB account (User or Business). Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Email") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Email") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*GmbAccountsGmbAccount) MarshalJSON ¶
func (s *GmbAccountsGmbAccount) MarshalJSON() ([]byte, error)
type Headers ¶
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", and // "> 50 items". Must be non-empty. Can only be set if all other fields // are not set. NumberOfItems []string `json:"numberOfItems,omitempty"` // PostalCodeGroupNames: A list of postal group names. The last value // can be "all other locations". Example: `["zone 1", "zone 2", "all // other locations"]`. The referred postal code groups must match the // delivery country of the service. Must be non-empty. Can only be set // if all other fields are not set. PostalCodeGroupNames []string `json:"postalCodeGroupNames,omitempty"` // Prices: A list of inclusive order price upper bounds. The last // price's value can be "infinity". For example `[{"value": "10", // "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value": // "infinity", "currency": "USD"}]` represents the headers "<= $10", "<= // $500", and "> $500". All prices within a service must have the same // currency. Must be non-empty. Can only be set if all other fields are // not set. Prices []*Price `json:"prices,omitempty"` // Weights: A list of inclusive order weight upper bounds. The last // weight's value can be "infinity". For example `[{"value": "10", // "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity", // "unit": "kg"}]` represents the headers "<= 10kg", "<= 50kg", and "> // 50kg". All weights within a service must have the same unit. Must be // non-empty. Can only be set if all other fields are not set. Weights []*Weight `json:"weights,omitempty"` // ForceSendFields is a list of field names (e.g. "Locations") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Locations") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Headers: A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location` must be set.
func (*Headers) MarshalJSON ¶
type HolidayCutoff ¶
type HolidayCutoff struct { // DeadlineDate: Date of the order deadline, in ISO 8601 format. E.g. // "2016-11-29" for 29th November 2016. Required. DeadlineDate string `json:"deadlineDate,omitempty"` // DeadlineHour: Hour of the day on the deadline date until which the // order has to be placed to qualify for the delivery guarantee. // Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23. // Required. DeadlineHour int64 `json:"deadlineHour,omitempty"` // DeadlineTimezone: Timezone identifier for the deadline hour. A list // of identifiers can be found in the AdWords API documentation. E.g. // "Europe/Zurich". Required. DeadlineTimezone string `json:"deadlineTimezone,omitempty"` // HolidayId: Unique identifier for the holiday. Required. HolidayId string `json:"holidayId,omitempty"` // VisibleFromDate: Date on which the deadline will become visible to // consumers in ISO 8601 format. E.g. "2016-10-31" for 31st October // 2016. Required. VisibleFromDate string `json:"visibleFromDate,omitempty"` // ForceSendFields is a list of field names (e.g. "DeadlineDate") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DeadlineDate") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*HolidayCutoff) MarshalJSON ¶
func (s *HolidayCutoff) MarshalJSON() ([]byte, error)
type HolidaysHoliday ¶
type HolidaysHoliday struct { // CountryCode: The CLDR territory code of the country in which the // holiday is available. E.g. "US", "DE", "GB". A holiday cutoff can // only be configured in a shipping settings service with matching // delivery country. Always present. CountryCode string `json:"countryCode,omitempty"` // Date: Date of the holiday, in ISO 8601 format. E.g. "2016-12-25" for // Christmas 2016. Always present. Date string `json:"date,omitempty"` // DeliveryGuaranteeDate: Date on which the order has to arrive at the // customer's, in ISO 8601 format. E.g. "2016-12-24" for 24th December // 2016. Always present. DeliveryGuaranteeDate string `json:"deliveryGuaranteeDate,omitempty"` // DeliveryGuaranteeHour: Hour of the day in the delivery location's // timezone on the guaranteed delivery date by which the order has to // arrive at the customer's. Possible values are: 0 (midnight), 1, ..., // 12 (noon), 13, ..., 23. Always present. DeliveryGuaranteeHour uint64 `json:"deliveryGuaranteeHour,omitempty,string"` // Id: Unique identifier for the holiday to be used when configuring // holiday cutoffs. Always present. Id string `json:"id,omitempty"` // Type: The holiday type. Always present. Acceptable values are: - // "Christmas" - "Easter" - "Father's Day" - "Halloween" - // "Independence Day (USA)" - "Mother's Day" - "Thanksgiving" - // "Valentine's Day" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "CountryCode") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CountryCode") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*HolidaysHoliday) MarshalJSON ¶
func (s *HolidaysHoliday) MarshalJSON() ([]byte, error)
type InapplicabilityDetails ¶ added in v0.37.0
type InapplicabilityDetails struct { // InapplicableCount: Count of this inapplicable reason code. InapplicableCount int64 `json:"inapplicableCount,omitempty,string"` // InapplicableReason: Reason code this rule was not applicable. // // Possible values: // "INAPPLICABLE_REASON_UNSPECIFIED" - Default value. Should not be // used. // "CANNOT_BEAT_BUYBOX_WINNER" - The rule set for this product cannot // beat the buybox winner. // "ALREADY_WINNING_BUYBOX" - This product can already win the buybox // without rule. // "TRIUMPHED_OVER_BY_SAME_TYPE_RULE" - Another rule of the same type // takes precedence over this one. // "TRIUMPHED_OVER_BY_OTHER_RULE_ON_OFFER" - Another rule of a // different type takes precedence over this one. // "RESTRICTIONS_NOT_MET" - The rule restrictions are not met. For // example, this may be the case if the calculated rule price is lower // than floor price in the restriction. // "UNCATEGORIZED" - The reason is not categorized to any known // reason. InapplicableReason string `json:"inapplicableReason,omitempty"` // ForceSendFields is a list of field names (e.g. "InapplicableCount") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "InapplicableCount") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
InapplicabilityDetails: Map of inapplicability details.
func (*InapplicabilityDetails) MarshalJSON ¶ added in v0.37.0
func (s *InapplicabilityDetails) 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 InvoiceSummary ¶
type InvoiceSummary struct { // AdditionalChargeSummaries: Summary of the total amounts of the // additional charges. AdditionalChargeSummaries []*InvoiceSummaryAdditionalChargeSummary `json:"additionalChargeSummaries,omitempty"` // ProductTotal: [required] Total price for the product. ProductTotal *Amount `json:"productTotal,omitempty"` // ForceSendFields is a list of field names (e.g. // "AdditionalChargeSummaries") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "AdditionalChargeSummaries") to include in API requests with the JSON // null value. By default, fields with empty values are omitted from API // requests. However, any field with an empty value appearing in // NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
func (*InvoiceSummary) MarshalJSON ¶
func (s *InvoiceSummary) MarshalJSON() ([]byte, error)
type InvoiceSummaryAdditionalChargeSummary ¶
type InvoiceSummaryAdditionalChargeSummary struct { // TotalAmount: [required] Total additional charge for this type. TotalAmount *Amount `json:"totalAmount,omitempty"` // Type: [required] Type of the additional charge. Acceptable values // are: - "shipping" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "TotalAmount") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "TotalAmount") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*InvoiceSummaryAdditionalChargeSummary) MarshalJSON ¶
func (s *InvoiceSummaryAdditionalChargeSummary) MarshalJSON() ([]byte, error)
type LabelIds ¶ added in v0.34.0
type LabelIds struct { // LabelIds: The list of label IDs. LabelIds googleapi.Int64s `json:"labelIds,omitempty"` // ForceSendFields is a list of field names (e.g. "LabelIds") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LabelIds") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
LabelIds: The IDs of labels that should be assigned to the CSS domain.
func (*LabelIds) MarshalJSON ¶ added in v0.34.0
type LiaAboutPageSettings ¶
type LiaAboutPageSettings struct { // Status: The status of the verification process for the About page. // Acceptable values are: - "active" - "inactive" - "pending" Status string `json:"status,omitempty"` // Url: The URL for the About page. Url string `json:"url,omitempty"` // ForceSendFields is a list of field names (e.g. "Status") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Status") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*LiaAboutPageSettings) MarshalJSON ¶
func (s *LiaAboutPageSettings) MarshalJSON() ([]byte, error)
type LiaCountrySettings ¶
type LiaCountrySettings struct { // About: The settings for the About page. About *LiaAboutPageSettings `json:"about,omitempty"` // Country: Required. CLDR country code (e.g. "US"). Country string `json:"country,omitempty"` // HostedLocalStorefrontActive: The status of the "Merchant hosted local // storefront" feature. HostedLocalStorefrontActive bool `json:"hostedLocalStorefrontActive,omitempty"` // Inventory: LIA inventory verification settings. Inventory *LiaInventorySettings `json:"inventory,omitempty"` // OnDisplayToOrder: LIA "On Display To Order" settings. OnDisplayToOrder *LiaOnDisplayToOrderSettings `json:"onDisplayToOrder,omitempty"` // PosDataProvider: The POS data provider linked with this country. PosDataProvider *LiaPosDataProvider `json:"posDataProvider,omitempty"` // StorePickupActive: The status of the "Store pickup" feature. StorePickupActive bool `json:"storePickupActive,omitempty"` // ForceSendFields is a list of field names (e.g. "About") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "About") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*LiaCountrySettings) MarshalJSON ¶
func (s *LiaCountrySettings) MarshalJSON() ([]byte, error)
type LiaInventorySettings ¶
type LiaInventorySettings struct { // InventoryVerificationContactEmail: The email of the contact for the // inventory verification process. InventoryVerificationContactEmail string `json:"inventoryVerificationContactEmail,omitempty"` // InventoryVerificationContactName: The name of the contact for the // inventory verification process. InventoryVerificationContactName string `json:"inventoryVerificationContactName,omitempty"` // InventoryVerificationContactStatus: The status of the verification // contact. Acceptable values are: - "active" - "inactive" - // "pending" InventoryVerificationContactStatus string `json:"inventoryVerificationContactStatus,omitempty"` // Status: The status of the inventory verification process. Acceptable // values are: - "active" - "inactive" - "pending" Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. // "InventoryVerificationContactEmail") to unconditionally include in // API requests. By default, fields with empty values are omitted from // API requests. However, any non-pointer, non-interface field appearing // in ForceSendFields will be sent to the server regardless of whether // the field is empty or not. This may be used to include empty fields // in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "InventoryVerificationContactEmail") to include in API requests with // the JSON null value. By default, fields with empty values are omitted // from API requests. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
func (*LiaInventorySettings) MarshalJSON ¶
func (s *LiaInventorySettings) MarshalJSON() ([]byte, error)
type LiaOnDisplayToOrderSettings ¶
type LiaOnDisplayToOrderSettings struct { // ShippingCostPolicyUrl: Shipping cost and policy URL. ShippingCostPolicyUrl string `json:"shippingCostPolicyUrl,omitempty"` // Status: The status of the ?On display to order? feature. Acceptable // values are: - "active" - "inactive" - "pending" Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. // "ShippingCostPolicyUrl") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ShippingCostPolicyUrl") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*LiaOnDisplayToOrderSettings) MarshalJSON ¶
func (s *LiaOnDisplayToOrderSettings) MarshalJSON() ([]byte, error)
type LiaPosDataProvider ¶
type LiaPosDataProvider struct { // PosDataProviderId: The ID of the POS data provider. PosDataProviderId uint64 `json:"posDataProviderId,omitempty,string"` // PosExternalAccountId: The account ID by which this merchant is known // to the POS data provider. PosExternalAccountId string `json:"posExternalAccountId,omitempty"` // ForceSendFields is a list of field names (e.g. "PosDataProviderId") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PosDataProviderId") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*LiaPosDataProvider) MarshalJSON ¶
func (s *LiaPosDataProvider) MarshalJSON() ([]byte, error)
type LiaSettings ¶
type LiaSettings struct { // AccountId: The ID of the account to which these LIA settings belong. // Ignored upon update, always present in get request responses. AccountId uint64 `json:"accountId,omitempty,string"` // CountrySettings: The LIA settings for each country. CountrySettings []*LiaCountrySettings `json:"countrySettings,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#liaSettings" Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AccountId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
LiaSettings: Local Inventory ads (LIA) settings. All methods except listposdataproviders require the admin role.
func (*LiaSettings) MarshalJSON ¶
func (s *LiaSettings) MarshalJSON() ([]byte, error)
type LiasettingsCustomBatchRequest ¶
type LiasettingsCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*LiasettingsCustomBatchRequestEntry `json:"entries,omitempty"` // ForceSendFields is a list of field names (e.g. "Entries") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Entries") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*LiasettingsCustomBatchRequest) MarshalJSON ¶
func (s *LiasettingsCustomBatchRequest) MarshalJSON() ([]byte, error)
type LiasettingsCustomBatchRequestEntry ¶
type LiasettingsCustomBatchRequestEntry struct { // AccountId: The ID of the account for which to get/update account LIA // settings. AccountId uint64 `json:"accountId,omitempty,string"` // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // ContactEmail: Inventory validation contact email. Required only for // SetInventoryValidationContact. ContactEmail string `json:"contactEmail,omitempty"` // ContactName: Inventory validation contact name. Required only for // SetInventoryValidationContact. ContactName string `json:"contactName,omitempty"` // Country: The country code. Required only for // RequestInventoryVerification. Country string `json:"country,omitempty"` // GmbEmail: The GMB account. Required only for RequestGmbAccess. GmbEmail string `json:"gmbEmail,omitempty"` // LiaSettings: The account Lia settings to update. Only defined if the // method is `update`. LiaSettings *LiaSettings `json:"liaSettings,omitempty"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` // Method: The method of the batch entry. Acceptable values are: - // "get" - "getAccessibleGmbAccounts" - "requestGmbAccess" - // "requestInventoryVerification" - // "setInventoryVerificationContact" - "update" Method string `json:"method,omitempty"` // PosDataProviderId: The ID of POS data provider. Required only for // SetPosProvider. PosDataProviderId uint64 `json:"posDataProviderId,omitempty,string"` // PosExternalAccountId: The account ID by which this merchant is known // to the POS provider. PosExternalAccountId string `json:"posExternalAccountId,omitempty"` // ForceSendFields is a list of field names (e.g. "AccountId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*LiasettingsCustomBatchRequestEntry) MarshalJSON ¶
func (s *LiasettingsCustomBatchRequestEntry) MarshalJSON() ([]byte, error)
type LiasettingsCustomBatchResponse ¶
type LiasettingsCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*LiasettingsCustomBatchResponseEntry `json:"entries,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#liasettingsCustomBatchResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Entries") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Entries") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*LiasettingsCustomBatchResponse) MarshalJSON ¶
func (s *LiasettingsCustomBatchResponse) MarshalJSON() ([]byte, error)
type LiasettingsCustomBatchResponseEntry ¶
type LiasettingsCustomBatchResponseEntry struct { // BatchId: The ID of the request entry to which this entry responds. BatchId int64 `json:"batchId,omitempty"` // Errors: A list of errors defined if, and only if, the request failed. Errors *Errors `json:"errors,omitempty"` // GmbAccounts: The list of accessible GMB accounts. GmbAccounts *GmbAccounts `json:"gmbAccounts,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#liasettingsCustomBatchResponseEntry" Kind string `json:"kind,omitempty"` // LiaSettings: The retrieved or updated Lia settings. LiaSettings *LiaSettings `json:"liaSettings,omitempty"` // PosDataProviders: The list of POS data providers. PosDataProviders []*PosDataProviders `json:"posDataProviders,omitempty"` // ForceSendFields is a list of field names (e.g. "BatchId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BatchId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*LiasettingsCustomBatchResponseEntry) MarshalJSON ¶
func (s *LiasettingsCustomBatchResponseEntry) MarshalJSON() ([]byte, error)
type LiasettingsCustombatchCall ¶
type LiasettingsCustombatchCall struct {
// contains filtered or unexported fields
}
func (*LiasettingsCustombatchCall) Context ¶
func (c *LiasettingsCustombatchCall) Context(ctx context.Context) *LiasettingsCustombatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LiasettingsCustombatchCall) Do ¶
func (c *LiasettingsCustombatchCall) Do(opts ...googleapi.CallOption) (*LiasettingsCustomBatchResponse, error)
Do executes the "content.liasettings.custombatch" call. Exactly one of *LiasettingsCustomBatchResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LiasettingsCustomBatchResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LiasettingsCustombatchCall) Fields ¶
func (c *LiasettingsCustombatchCall) Fields(s ...googleapi.Field) *LiasettingsCustombatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LiasettingsCustombatchCall) Header ¶
func (c *LiasettingsCustombatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type LiasettingsGetAccessibleGmbAccountsResponse ¶
type LiasettingsGetAccessibleGmbAccountsResponse struct { // AccountId: The ID of the Merchant Center account. AccountId uint64 `json:"accountId,omitempty,string"` // GmbAccounts: A list of GMB accounts which are available to the // merchant. GmbAccounts []*GmbAccountsGmbAccount `json:"gmbAccounts,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#liasettingsGetAccessibleGmbAccountsResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AccountId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*LiasettingsGetAccessibleGmbAccountsResponse) MarshalJSON ¶
func (s *LiasettingsGetAccessibleGmbAccountsResponse) MarshalJSON() ([]byte, error)
type LiasettingsGetCall ¶
type LiasettingsGetCall struct {
// contains filtered or unexported fields
}
func (*LiasettingsGetCall) Context ¶
func (c *LiasettingsGetCall) Context(ctx context.Context) *LiasettingsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LiasettingsGetCall) Do ¶
func (c *LiasettingsGetCall) Do(opts ...googleapi.CallOption) (*LiaSettings, error)
Do executes the "content.liasettings.get" call. Exactly one of *LiaSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LiaSettings.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LiasettingsGetCall) Fields ¶
func (c *LiasettingsGetCall) Fields(s ...googleapi.Field) *LiasettingsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LiasettingsGetCall) Header ¶
func (c *LiasettingsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*LiasettingsGetCall) IfNoneMatch ¶
func (c *LiasettingsGetCall) IfNoneMatch(entityTag string) *LiasettingsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type LiasettingsGetaccessiblegmbaccountsCall ¶
type LiasettingsGetaccessiblegmbaccountsCall struct {
// contains filtered or unexported fields
}
func (*LiasettingsGetaccessiblegmbaccountsCall) Context ¶
func (c *LiasettingsGetaccessiblegmbaccountsCall) Context(ctx context.Context) *LiasettingsGetaccessiblegmbaccountsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LiasettingsGetaccessiblegmbaccountsCall) Do ¶
func (c *LiasettingsGetaccessiblegmbaccountsCall) Do(opts ...googleapi.CallOption) (*LiasettingsGetAccessibleGmbAccountsResponse, error)
Do executes the "content.liasettings.getaccessiblegmbaccounts" call. Exactly one of *LiasettingsGetAccessibleGmbAccountsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LiasettingsGetAccessibleGmbAccountsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LiasettingsGetaccessiblegmbaccountsCall) Fields ¶
func (c *LiasettingsGetaccessiblegmbaccountsCall) Fields(s ...googleapi.Field) *LiasettingsGetaccessiblegmbaccountsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LiasettingsGetaccessiblegmbaccountsCall) Header ¶
func (c *LiasettingsGetaccessiblegmbaccountsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*LiasettingsGetaccessiblegmbaccountsCall) IfNoneMatch ¶
func (c *LiasettingsGetaccessiblegmbaccountsCall) IfNoneMatch(entityTag string) *LiasettingsGetaccessiblegmbaccountsCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type LiasettingsListCall ¶
type LiasettingsListCall struct {
// contains filtered or unexported fields
}
func (*LiasettingsListCall) Context ¶
func (c *LiasettingsListCall) Context(ctx context.Context) *LiasettingsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LiasettingsListCall) Do ¶
func (c *LiasettingsListCall) Do(opts ...googleapi.CallOption) (*LiasettingsListResponse, error)
Do executes the "content.liasettings.list" call. Exactly one of *LiasettingsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LiasettingsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LiasettingsListCall) Fields ¶
func (c *LiasettingsListCall) Fields(s ...googleapi.Field) *LiasettingsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LiasettingsListCall) Header ¶
func (c *LiasettingsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*LiasettingsListCall) IfNoneMatch ¶
func (c *LiasettingsListCall) IfNoneMatch(entityTag string) *LiasettingsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*LiasettingsListCall) MaxResults ¶
func (c *LiasettingsListCall) MaxResults(maxResults int64) *LiasettingsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of LIA settings to return in the response, used for paging.
func (*LiasettingsListCall) PageToken ¶
func (c *LiasettingsListCall) PageToken(pageToken string) *LiasettingsListCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
func (*LiasettingsListCall) Pages ¶
func (c *LiasettingsListCall) Pages(ctx context.Context, f func(*LiasettingsListResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
type LiasettingsListPosDataProvidersResponse ¶
type LiasettingsListPosDataProvidersResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#liasettingsListPosDataProvidersResponse". Kind string `json:"kind,omitempty"` // PosDataProviders: The list of POS data providers for each eligible // country PosDataProviders []*PosDataProviders `json:"posDataProviders,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*LiasettingsListPosDataProvidersResponse) MarshalJSON ¶
func (s *LiasettingsListPosDataProvidersResponse) MarshalJSON() ([]byte, error)
type LiasettingsListResponse ¶
type LiasettingsListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#liasettingsListResponse". Kind string `json:"kind,omitempty"` // NextPageToken: The token for the retrieval of the next page of LIA // settings. NextPageToken string `json:"nextPageToken,omitempty"` Resources []*LiaSettings `json:"resources,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*LiasettingsListResponse) MarshalJSON ¶
func (s *LiasettingsListResponse) MarshalJSON() ([]byte, error)
type LiasettingsListposdataprovidersCall ¶
type LiasettingsListposdataprovidersCall struct {
// contains filtered or unexported fields
}
func (*LiasettingsListposdataprovidersCall) Context ¶
func (c *LiasettingsListposdataprovidersCall) Context(ctx context.Context) *LiasettingsListposdataprovidersCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LiasettingsListposdataprovidersCall) Do ¶
func (c *LiasettingsListposdataprovidersCall) Do(opts ...googleapi.CallOption) (*LiasettingsListPosDataProvidersResponse, error)
Do executes the "content.liasettings.listposdataproviders" call. Exactly one of *LiasettingsListPosDataProvidersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LiasettingsListPosDataProvidersResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LiasettingsListposdataprovidersCall) Fields ¶
func (c *LiasettingsListposdataprovidersCall) Fields(s ...googleapi.Field) *LiasettingsListposdataprovidersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LiasettingsListposdataprovidersCall) Header ¶
func (c *LiasettingsListposdataprovidersCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*LiasettingsListposdataprovidersCall) IfNoneMatch ¶
func (c *LiasettingsListposdataprovidersCall) IfNoneMatch(entityTag string) *LiasettingsListposdataprovidersCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type LiasettingsRequestGmbAccessResponse ¶
type LiasettingsRequestGmbAccessResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#liasettingsRequestGmbAccessResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*LiasettingsRequestGmbAccessResponse) MarshalJSON ¶
func (s *LiasettingsRequestGmbAccessResponse) MarshalJSON() ([]byte, error)
type LiasettingsRequestInventoryVerificationResponse ¶
type LiasettingsRequestInventoryVerificationResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#liasettingsRequestInventoryVerificationResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*LiasettingsRequestInventoryVerificationResponse) MarshalJSON ¶
func (s *LiasettingsRequestInventoryVerificationResponse) MarshalJSON() ([]byte, error)
type LiasettingsRequestgmbaccessCall ¶
type LiasettingsRequestgmbaccessCall struct {
// contains filtered or unexported fields
}
func (*LiasettingsRequestgmbaccessCall) Context ¶
func (c *LiasettingsRequestgmbaccessCall) Context(ctx context.Context) *LiasettingsRequestgmbaccessCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LiasettingsRequestgmbaccessCall) Do ¶
func (c *LiasettingsRequestgmbaccessCall) Do(opts ...googleapi.CallOption) (*LiasettingsRequestGmbAccessResponse, error)
Do executes the "content.liasettings.requestgmbaccess" call. Exactly one of *LiasettingsRequestGmbAccessResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LiasettingsRequestGmbAccessResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LiasettingsRequestgmbaccessCall) Fields ¶
func (c *LiasettingsRequestgmbaccessCall) Fields(s ...googleapi.Field) *LiasettingsRequestgmbaccessCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LiasettingsRequestgmbaccessCall) Header ¶
func (c *LiasettingsRequestgmbaccessCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type LiasettingsRequestinventoryverificationCall ¶
type LiasettingsRequestinventoryverificationCall struct {
// contains filtered or unexported fields
}
func (*LiasettingsRequestinventoryverificationCall) Context ¶
func (c *LiasettingsRequestinventoryverificationCall) Context(ctx context.Context) *LiasettingsRequestinventoryverificationCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LiasettingsRequestinventoryverificationCall) Do ¶
func (c *LiasettingsRequestinventoryverificationCall) Do(opts ...googleapi.CallOption) (*LiasettingsRequestInventoryVerificationResponse, error)
Do executes the "content.liasettings.requestinventoryverification" call. Exactly one of *LiasettingsRequestInventoryVerificationResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LiasettingsRequestInventoryVerificationResponse.ServerResponse.Header
or (if a response was returned at all) in
error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LiasettingsRequestinventoryverificationCall) Fields ¶
func (c *LiasettingsRequestinventoryverificationCall) Fields(s ...googleapi.Field) *LiasettingsRequestinventoryverificationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LiasettingsRequestinventoryverificationCall) Header ¶
func (c *LiasettingsRequestinventoryverificationCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type LiasettingsService ¶
type LiasettingsService struct {
// contains filtered or unexported fields
}
func NewLiasettingsService ¶
func NewLiasettingsService(s *APIService) *LiasettingsService
func (*LiasettingsService) Custombatch ¶
func (r *LiasettingsService) Custombatch(liasettingscustombatchrequest *LiasettingsCustomBatchRequest) *LiasettingsCustombatchCall
Custombatch: Retrieves and/or updates the LIA settings of multiple accounts in a single request.
func (*LiasettingsService) Get ¶
func (r *LiasettingsService) Get(merchantId uint64, accountId uint64) *LiasettingsGetCall
Get: Retrieves the LIA settings of the account.
func (*LiasettingsService) Getaccessiblegmbaccounts ¶
func (r *LiasettingsService) Getaccessiblegmbaccounts(merchantId uint64, accountId uint64) *LiasettingsGetaccessiblegmbaccountsCall
Getaccessiblegmbaccounts: Retrieves the list of accessible Google My Business accounts.
func (*LiasettingsService) List ¶
func (r *LiasettingsService) List(merchantId uint64) *LiasettingsListCall
List: Lists the LIA settings of the sub-accounts in your Merchant Center account.
func (*LiasettingsService) Listposdataproviders ¶
func (r *LiasettingsService) Listposdataproviders() *LiasettingsListposdataprovidersCall
Listposdataproviders: Retrieves the list of POS data providers that have active settings for the all eiligible countries.
func (*LiasettingsService) Requestgmbaccess ¶
func (r *LiasettingsService) Requestgmbaccess(merchantId uint64, accountId uint64, gmbEmail string) *LiasettingsRequestgmbaccessCall
Requestgmbaccess: Requests access to a specified Google My Business account.
func (*LiasettingsService) Requestinventoryverification ¶
func (r *LiasettingsService) Requestinventoryverification(merchantId uint64, accountId uint64, country string) *LiasettingsRequestinventoryverificationCall
Requestinventoryverification: Requests inventory validation for the specified country.
func (*LiasettingsService) Setinventoryverificationcontact ¶
func (r *LiasettingsService) Setinventoryverificationcontact(merchantId uint64, accountId uint64, country string, language string, contactName string, contactEmail string) *LiasettingsSetinventoryverificationcontactCall
Setinventoryverificationcontact: Sets the inventory verification contract for the specified country.
func (*LiasettingsService) Setposdataprovider ¶
func (r *LiasettingsService) Setposdataprovider(merchantId uint64, accountId uint64, country string) *LiasettingsSetposdataproviderCall
Setposdataprovider: Sets the POS data provider for the specified country.
func (*LiasettingsService) Update ¶
func (r *LiasettingsService) Update(merchantId uint64, accountId uint64, liasettings *LiaSettings) *LiasettingsUpdateCall
Update: Updates the LIA settings of the account. Any fields that are not provided are deleted from the resource.
type LiasettingsSetInventoryVerificationContactResponse ¶
type LiasettingsSetInventoryVerificationContactResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#liasettingsSetInventoryVerificationContactResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*LiasettingsSetInventoryVerificationContactResponse) MarshalJSON ¶
func (s *LiasettingsSetInventoryVerificationContactResponse) MarshalJSON() ([]byte, error)
type LiasettingsSetPosDataProviderResponse ¶
type LiasettingsSetPosDataProviderResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#liasettingsSetPosDataProviderResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*LiasettingsSetPosDataProviderResponse) MarshalJSON ¶
func (s *LiasettingsSetPosDataProviderResponse) MarshalJSON() ([]byte, error)
type LiasettingsSetinventoryverificationcontactCall ¶
type LiasettingsSetinventoryverificationcontactCall struct {
// contains filtered or unexported fields
}
func (*LiasettingsSetinventoryverificationcontactCall) Context ¶
func (c *LiasettingsSetinventoryverificationcontactCall) Context(ctx context.Context) *LiasettingsSetinventoryverificationcontactCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LiasettingsSetinventoryverificationcontactCall) Do ¶
func (c *LiasettingsSetinventoryverificationcontactCall) Do(opts ...googleapi.CallOption) (*LiasettingsSetInventoryVerificationContactResponse, error)
Do executes the "content.liasettings.setinventoryverificationcontact" call. Exactly one of *LiasettingsSetInventoryVerificationContactResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LiasettingsSetInventoryVerificationContactResponse.ServerResponse.Hea der or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LiasettingsSetinventoryverificationcontactCall) Fields ¶
func (c *LiasettingsSetinventoryverificationcontactCall) Fields(s ...googleapi.Field) *LiasettingsSetinventoryverificationcontactCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LiasettingsSetinventoryverificationcontactCall) Header ¶
func (c *LiasettingsSetinventoryverificationcontactCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type LiasettingsSetposdataproviderCall ¶
type LiasettingsSetposdataproviderCall struct {
// contains filtered or unexported fields
}
func (*LiasettingsSetposdataproviderCall) Context ¶
func (c *LiasettingsSetposdataproviderCall) Context(ctx context.Context) *LiasettingsSetposdataproviderCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LiasettingsSetposdataproviderCall) Do ¶
func (c *LiasettingsSetposdataproviderCall) Do(opts ...googleapi.CallOption) (*LiasettingsSetPosDataProviderResponse, error)
Do executes the "content.liasettings.setposdataprovider" call. Exactly one of *LiasettingsSetPosDataProviderResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LiasettingsSetPosDataProviderResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LiasettingsSetposdataproviderCall) Fields ¶
func (c *LiasettingsSetposdataproviderCall) Fields(s ...googleapi.Field) *LiasettingsSetposdataproviderCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LiasettingsSetposdataproviderCall) Header ¶
func (c *LiasettingsSetposdataproviderCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*LiasettingsSetposdataproviderCall) PosDataProviderId ¶
func (c *LiasettingsSetposdataproviderCall) PosDataProviderId(posDataProviderId uint64) *LiasettingsSetposdataproviderCall
PosDataProviderId sets the optional parameter "posDataProviderId": The ID of POS data provider.
func (*LiasettingsSetposdataproviderCall) PosExternalAccountId ¶
func (c *LiasettingsSetposdataproviderCall) PosExternalAccountId(posExternalAccountId string) *LiasettingsSetposdataproviderCall
PosExternalAccountId sets the optional parameter "posExternalAccountId": The account ID by which this merchant is known to the POS data provider.
type LiasettingsUpdateCall ¶
type LiasettingsUpdateCall struct {
// contains filtered or unexported fields
}
func (*LiasettingsUpdateCall) Context ¶
func (c *LiasettingsUpdateCall) Context(ctx context.Context) *LiasettingsUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LiasettingsUpdateCall) Do ¶
func (c *LiasettingsUpdateCall) Do(opts ...googleapi.CallOption) (*LiaSettings, error)
Do executes the "content.liasettings.update" call. Exactly one of *LiaSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LiaSettings.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LiasettingsUpdateCall) Fields ¶
func (c *LiasettingsUpdateCall) Fields(s ...googleapi.Field) *LiasettingsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LiasettingsUpdateCall) Header ¶
func (c *LiasettingsUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type LinkService ¶ added in v0.16.0
type LinkService struct { // Service: Service provided to or by the linked account. Acceptable // values are: - "shoppingActionsOrderManagement" - // "shoppingActionsProductManagement" - // "shoppingAdsProductManagement" Service string `json:"service,omitempty"` // Status: Status of the link Acceptable values are: - "active" - // "inactive" - "pending" Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "Service") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Service") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*LinkService) MarshalJSON ¶ added in v0.16.0
func (s *LinkService) MarshalJSON() ([]byte, error)
type LinkedAccount ¶ added in v0.16.0
type LinkedAccount struct { // LinkedAccountId: The ID of the linked account. LinkedAccountId string `json:"linkedAccountId,omitempty"` // Services: List of provided services. Services []*LinkService `json:"services,omitempty"` // ForceSendFields is a list of field names (e.g. "LinkedAccountId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LinkedAccountId") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*LinkedAccount) MarshalJSON ¶ added in v0.16.0
func (s *LinkedAccount) MarshalJSON() ([]byte, error)
type ListAccountLabelsResponse ¶ added in v0.34.0
type ListAccountLabelsResponse struct { // AccountLabels: The labels from the specified account. AccountLabels []*AccountLabel `json:"accountLabels,omitempty"` // NextPageToken: A token, which can be sent as `page_token` to retrieve // the next page. If this field is omitted, there are no subsequent // pages. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AccountLabels") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountLabels") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListAccountLabelsResponse: Response message for the `ListAccountLabels` method.
func (*ListAccountLabelsResponse) MarshalJSON ¶ added in v0.34.0
func (s *ListAccountLabelsResponse) MarshalJSON() ([]byte, error)
type ListAccountReturnCarrierResponse ¶ added in v0.37.0
type ListAccountReturnCarrierResponse struct { // AccountReturnCarriers: List of all available account return carriers // for the merchant. AccountReturnCarriers []*AccountReturnCarrier `json:"accountReturnCarriers,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. // "AccountReturnCarriers") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountReturnCarriers") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ListAccountReturnCarrierResponse: Response for listing account return carriers.
func (*ListAccountReturnCarrierResponse) MarshalJSON ¶ added in v0.37.0
func (s *ListAccountReturnCarrierResponse) MarshalJSON() ([]byte, error)
type ListCollectionStatusesResponse ¶ added in v0.37.0
type ListCollectionStatusesResponse struct { // NextPageToken: A token, which can be sent as `page_token` to retrieve // the next page. If this field is omitted, there are no subsequent // pages. NextPageToken string `json:"nextPageToken,omitempty"` // Resources: The collectionstatuses listed. Resources []*CollectionStatus `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. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListCollectionStatusesResponse: Response message for the ListCollectionStatuses method.
func (*ListCollectionStatusesResponse) MarshalJSON ¶ added in v0.37.0
func (s *ListCollectionStatusesResponse) MarshalJSON() ([]byte, error)
type ListCollectionsResponse ¶ added in v0.37.0
type ListCollectionsResponse struct { // NextPageToken: A token, which can be sent as `page_token` to retrieve // the next page. If this field is omitted, there are no subsequent // pages. NextPageToken string `json:"nextPageToken,omitempty"` // Resources: The collections listed. Resources []*Collection `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. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListCollectionsResponse: Response message for the ListCollections method.
func (*ListCollectionsResponse) MarshalJSON ¶ added in v0.37.0
func (s *ListCollectionsResponse) MarshalJSON() ([]byte, error)
type ListCssesResponse ¶ added in v0.34.0
type ListCssesResponse struct { // Csses: The CSS domains affiliated with the specified CSS group. Csses []*Css `json:"csses,omitempty"` // NextPageToken: A token, which can be sent as `page_token` to retrieve // the next page. If this field is omitted, there are no subsequent // pages. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Csses") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Csses") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListCssesResponse: The response message for the `ListCsses` method
func (*ListCssesResponse) MarshalJSON ¶ added in v0.34.0
func (s *ListCssesResponse) MarshalJSON() ([]byte, error)
type ListRegionsResponse ¶ added in v0.36.0
type ListRegionsResponse struct { // NextPageToken: A token, which can be sent as `page_token` to retrieve // the next page. If this field is omitted, there are no subsequent // pages. NextPageToken string `json:"nextPageToken,omitempty"` // Regions: The regions from the specified merchant. Regions []*Region `json:"regions,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListRegionsResponse: Response message for the `ListRegions` method.
func (*ListRegionsResponse) MarshalJSON ¶ added in v0.36.0
func (s *ListRegionsResponse) MarshalJSON() ([]byte, error)
type ListRepricingProductReportsResponse ¶ added in v0.37.0
type ListRepricingProductReportsResponse struct { // NextPageToken: A token for retrieving the next page. Its absence // means there is no subsequent page. NextPageToken string `json:"nextPageToken,omitempty"` // RepricingProductReports: Periodic reports for the given Repricing // product. RepricingProductReports []*RepricingProductReport `json:"repricingProductReports,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListRepricingProductReportsResponse: Response message for the ListRepricingProductReports method.
func (*ListRepricingProductReportsResponse) MarshalJSON ¶ added in v0.37.0
func (s *ListRepricingProductReportsResponse) MarshalJSON() ([]byte, error)
type ListRepricingRuleReportsResponse ¶ added in v0.37.0
type ListRepricingRuleReportsResponse struct { // NextPageToken: A token for retrieving the next page. Its absence // means there is no subsequent page. NextPageToken string `json:"nextPageToken,omitempty"` // RepricingRuleReports: Daily reports for the given Repricing rule. RepricingRuleReports []*RepricingRuleReport `json:"repricingRuleReports,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListRepricingRuleReportsResponse: Response message for the ListRepricingRuleReports method.
func (*ListRepricingRuleReportsResponse) MarshalJSON ¶ added in v0.37.0
func (s *ListRepricingRuleReportsResponse) MarshalJSON() ([]byte, error)
type ListRepricingRulesResponse ¶ added in v0.34.0
type ListRepricingRulesResponse struct { // NextPageToken: A token, which can be sent as `page_token` to retrieve // the next page. If this field is omitted, there are no subsequent // pages. NextPageToken string `json:"nextPageToken,omitempty"` // RepricingRules: The rules from the specified merchant. RepricingRules []*RepricingRule `json:"repricingRules,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ListRepricingRulesResponse: Response message for the `ListRepricingRules` method.
func (*ListRepricingRulesResponse) MarshalJSON ¶ added in v0.34.0
func (s *ListRepricingRulesResponse) MarshalJSON() ([]byte, error)
type ListReturnPolicyOnlineResponse ¶ added in v0.41.0
type ListReturnPolicyOnlineResponse struct { // ReturnPolicies: The retrieved return policies. ReturnPolicies []*ReturnPolicyOnline `json:"returnPolicies,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ReturnPolicies") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ReturnPolicies") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ListReturnPolicyOnlineResponse: Response message for the `ListReturnPolicyOnline` method.
func (*ListReturnPolicyOnlineResponse) MarshalJSON ¶ added in v0.41.0
func (s *ListReturnPolicyOnlineResponse) MarshalJSON() ([]byte, error)
type LocalInventory ¶ added in v0.21.0
type LocalInventory struct { // Availability: Availability of the product. For accepted attribute // values, see the local product inventory feed specification. Availability string `json:"availability,omitempty"` // InstoreProductLocation: In-store product location. InstoreProductLocation string `json:"instoreProductLocation,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#localInventory" Kind string `json:"kind,omitempty"` // PickupMethod: Supported pickup method for this offer. Unless the // value is "not supported", this field must be submitted together with // `pickupSla`. For accepted attribute values, see the local product // inventory feed // specification. PickupMethod string `json:"pickupMethod,omitempty"` // PickupSla: Expected date that an order will be ready for pickup // relative to the order date. Must be submitted together with // `pickupMethod`. For accepted attribute values, see the local product // inventory feed specification. PickupSla string `json:"pickupSla,omitempty"` // Price: Price of the product. Price *Price `json:"price,omitempty"` // Quantity: Quantity of the product. Must be nonnegative. Quantity int64 `json:"quantity,omitempty"` // SalePrice: 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 may be // specified as 'null' if undecided. SalePriceEffectiveDate string `json:"salePriceEffectiveDate,omitempty"` // StoreCode: Required. Store code of this local inventory resource. StoreCode string `json:"storeCode,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
LocalInventory: Local inventory resource. For accepted attribute values, see the local product inventory feed specification.
func (*LocalInventory) MarshalJSON ¶ added in v0.21.0
func (s *LocalInventory) MarshalJSON() ([]byte, error)
type LocalinventoryCustomBatchRequest ¶ added in v0.21.0
type LocalinventoryCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*LocalinventoryCustomBatchRequestEntry `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 (*LocalinventoryCustomBatchRequest) MarshalJSON ¶ added in v0.21.0
func (s *LocalinventoryCustomBatchRequest) MarshalJSON() ([]byte, error)
type LocalinventoryCustomBatchRequestEntry ¶ added in v0.21.0
type LocalinventoryCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // LocalInventory: Local inventory of the product. LocalInventory *LocalInventory `json:"localInventory,omitempty"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` // Method: Method of the batch request entry. Acceptable values are: - // "insert" Method string `json:"method,omitempty"` // ProductId: The ID of the product for which to update local inventory. 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:"-"` }
LocalinventoryCustomBatchRequestEntry: Batch entry encoding a single local inventory update request.
func (*LocalinventoryCustomBatchRequestEntry) MarshalJSON ¶ added in v0.21.0
func (s *LocalinventoryCustomBatchRequestEntry) MarshalJSON() ([]byte, error)
type LocalinventoryCustomBatchResponse ¶ added in v0.21.0
type LocalinventoryCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*LocalinventoryCustomBatchResponseEntry `json:"entries,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#localinventoryCustomBatchResponse". 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 (*LocalinventoryCustomBatchResponse) MarshalJSON ¶ added in v0.21.0
func (s *LocalinventoryCustomBatchResponse) MarshalJSON() ([]byte, error)
type LocalinventoryCustomBatchResponseEntry ¶ added in v0.21.0
type LocalinventoryCustomBatchResponseEntry 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#localinventoryCustomBatchResponseEntry" 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:"-"` }
LocalinventoryCustomBatchResponseEntry: Batch entry encoding a single local inventory update response.
func (*LocalinventoryCustomBatchResponseEntry) MarshalJSON ¶ added in v0.21.0
func (s *LocalinventoryCustomBatchResponseEntry) MarshalJSON() ([]byte, error)
type LocalinventoryCustombatchCall ¶ added in v0.21.0
type LocalinventoryCustombatchCall struct {
// contains filtered or unexported fields
}
func (*LocalinventoryCustombatchCall) Context ¶ added in v0.21.0
func (c *LocalinventoryCustombatchCall) Context(ctx context.Context) *LocalinventoryCustombatchCall
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 (*LocalinventoryCustombatchCall) Do ¶ added in v0.21.0
func (c *LocalinventoryCustombatchCall) Do(opts ...googleapi.CallOption) (*LocalinventoryCustomBatchResponse, error)
Do executes the "content.localinventory.custombatch" call. Exactly one of *LocalinventoryCustomBatchResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LocalinventoryCustomBatchResponse.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 (*LocalinventoryCustombatchCall) Fields ¶ added in v0.21.0
func (c *LocalinventoryCustombatchCall) Fields(s ...googleapi.Field) *LocalinventoryCustombatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LocalinventoryCustombatchCall) Header ¶ added in v0.21.0
func (c *LocalinventoryCustombatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type LocalinventoryInsertCall ¶ added in v0.21.0
type LocalinventoryInsertCall struct {
// contains filtered or unexported fields
}
func (*LocalinventoryInsertCall) Context ¶ added in v0.21.0
func (c *LocalinventoryInsertCall) Context(ctx context.Context) *LocalinventoryInsertCall
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 (*LocalinventoryInsertCall) Do ¶ added in v0.21.0
func (c *LocalinventoryInsertCall) Do(opts ...googleapi.CallOption) (*LocalInventory, error)
Do executes the "content.localinventory.insert" call. Exactly one of *LocalInventory or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LocalInventory.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 (*LocalinventoryInsertCall) Fields ¶ added in v0.21.0
func (c *LocalinventoryInsertCall) Fields(s ...googleapi.Field) *LocalinventoryInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LocalinventoryInsertCall) Header ¶ added in v0.21.0
func (c *LocalinventoryInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type LocalinventoryService ¶ added in v0.21.0
type LocalinventoryService struct {
// contains filtered or unexported fields
}
func NewLocalinventoryService ¶ added in v0.21.0
func NewLocalinventoryService(s *APIService) *LocalinventoryService
func (*LocalinventoryService) Custombatch ¶ added in v0.21.0
func (r *LocalinventoryService) Custombatch(localinventorycustombatchrequest *LocalinventoryCustomBatchRequest) *LocalinventoryCustombatchCall
Custombatch: Updates local inventory for multiple products or stores in a single request.
func (*LocalinventoryService) Insert ¶ added in v0.21.0
func (r *LocalinventoryService) Insert(merchantId uint64, productId string, localinventory *LocalInventory) *LocalinventoryInsertCall
Insert: Updates the local inventory of a product in your Merchant Center account.
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 MerchantOrderReturn ¶
type MerchantOrderReturn struct { // CreationDate: The date of creation of the return, in ISO 8601 format. CreationDate string `json:"creationDate,omitempty"` // MerchantOrderId: Merchant defined order ID. MerchantOrderId string `json:"merchantOrderId,omitempty"` // OrderId: Google order ID. OrderId string `json:"orderId,omitempty"` // OrderReturnId: Order return ID generated by Google. OrderReturnId string `json:"orderReturnId,omitempty"` // ReturnItems: Items of the return. ReturnItems []*MerchantOrderReturnItem `json:"returnItems,omitempty"` // ReturnPricingInfo: Information about shipping costs. ReturnPricingInfo *ReturnPricingInfo `json:"returnPricingInfo,omitempty"` // ReturnShipments: Shipments of the return. ReturnShipments []*ReturnShipment `json:"returnShipments,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationDate") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CreationDate") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
MerchantOrderReturn: Order return. Production access (all methods) requires the order manager role. Sandbox access does not.
func (*MerchantOrderReturn) MarshalJSON ¶
func (s *MerchantOrderReturn) MarshalJSON() ([]byte, error)
type MerchantOrderReturnItem ¶
type MerchantOrderReturnItem struct { // CustomerReturnReason: The reason that the customer chooses to return // an item. CustomerReturnReason *CustomerReturnReason `json:"customerReturnReason,omitempty"` // ItemId: Product level item ID. If the returned items are of the same // product, they will have the same ID. ItemId string `json:"itemId,omitempty"` // MerchantRejectionReason: The reason that the merchant chose to reject // an item return. MerchantRejectionReason *MerchantRejectionReason `json:"merchantRejectionReason,omitempty"` // MerchantReturnReason: The reason that merchant chooses to accept a // return item. MerchantReturnReason *RefundReason `json:"merchantReturnReason,omitempty"` // Product: Product data from the time of the order placement. Product *OrderLineItemProduct `json:"product,omitempty"` // RefundableAmount: Maximum amount that can be refunded for this return // item. RefundableAmount *MonetaryAmount `json:"refundableAmount,omitempty"` // ReturnItemId: Unit level ID for the return item. Different units of // the same product will have different IDs. ReturnItemId string `json:"returnItemId,omitempty"` // ReturnShipmentIds: IDs of the return shipments that this return item // belongs to. ReturnShipmentIds []string `json:"returnShipmentIds,omitempty"` // ShipmentGroupId: ID of the original shipment group. Provided for // shipments with invoice support. ShipmentGroupId string `json:"shipmentGroupId,omitempty"` // ShipmentUnitId: ID of the shipment unit assigned by the merchant. // Provided for shipments with invoice support. ShipmentUnitId string `json:"shipmentUnitId,omitempty"` // State: State of the item. Acceptable values are: - "canceled" - // "new" - "received" - "refunded" - "rejected" State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. // "CustomerReturnReason") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CustomerReturnReason") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*MerchantOrderReturnItem) MarshalJSON ¶
func (s *MerchantOrderReturnItem) MarshalJSON() ([]byte, error)
type MerchantRejectionReason ¶ added in v0.23.0
type MerchantRejectionReason struct { // Description: Description of the reason. Description string `json:"description,omitempty"` // ReasonCode: Code of the rejection reason. ReasonCode string `json:"reasonCode,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*MerchantRejectionReason) MarshalJSON ¶ added in v0.23.0
func (s *MerchantRejectionReason) MarshalJSON() ([]byte, error)
type Metrics ¶ added in v0.41.0
type Metrics struct { // Clicks: Number of clicks. Clicks int64 `json:"clicks,omitempty,string"` // Ctr: Number of clicks merchant's products receive (clicks) divided by // the number of times the products are shown (impressions). Ctr float64 `json:"ctr,omitempty"` // Impressions: Number of times merchant's products are shown. Impressions int64 `json:"impressions,omitempty,string"` // ForceSendFields is a list of field names (e.g. "Clicks") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Clicks") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Metrics: Performance metrics. Values are only set for metrics requested explicitly in the request's search query.
func (*Metrics) MarshalJSON ¶ added in v0.41.0
func (*Metrics) UnmarshalJSON ¶ added in v0.41.0
type MinimumOrderValueTable ¶ added in v0.23.0
type MinimumOrderValueTable struct { StoreCodeSetWithMovs []*MinimumOrderValueTableStoreCodeSetWithMov `json:"storeCodeSetWithMovs,omitempty"` // ForceSendFields is a list of field names (e.g. // "StoreCodeSetWithMovs") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "StoreCodeSetWithMovs") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*MinimumOrderValueTable) MarshalJSON ¶ added in v0.23.0
func (s *MinimumOrderValueTable) MarshalJSON() ([]byte, error)
type MinimumOrderValueTableStoreCodeSetWithMov ¶ added in v0.23.0
type MinimumOrderValueTableStoreCodeSetWithMov struct { // StoreCodes: A list of unique store codes or empty for the catch all. StoreCodes []string `json:"storeCodes,omitempty"` // Value: The minimum order value for the given stores. Value *Price `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "StoreCodes") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "StoreCodes") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
MinimumOrderValueTableStoreCodeSetWithMov: A list of store code sets sharing the same minimum order value. At least two sets are required and the last one must be empty, which signifies 'MOV for all other stores'. Each store code can only appear once across all the sets. All prices within a service must have the same currency.
func (*MinimumOrderValueTableStoreCodeSetWithMov) MarshalJSON ¶ added in v0.23.0
func (s *MinimumOrderValueTableStoreCodeSetWithMov) MarshalJSON() ([]byte, error)
type MonetaryAmount ¶ added in v0.23.0
type MonetaryAmount struct { // PriceAmount: The pre-tax or post-tax price depends on the location of // the order. - For countries (e.g. US) where price attribute excludes // tax, this field corresponds to the pre-tax value. - For coutries // (e.g. France) where price attribute includes tax, this field // corresponds to the post-tax value . PriceAmount *Price `json:"priceAmount,omitempty"` // TaxAmount: Tax value, present only for countries where price // attribute excludes tax (e.g. US). No tax is referenced as 0 value // with the corresponding `currency`. TaxAmount *Price `json:"taxAmount,omitempty"` // ForceSendFields is a list of field names (e.g. "PriceAmount") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PriceAmount") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*MonetaryAmount) MarshalJSON ¶ added in v0.23.0
func (s *MonetaryAmount) MarshalJSON() ([]byte, error)
type OnboardBuyOnGoogleProgramRequest ¶ added in v0.41.0
type OnboardBuyOnGoogleProgramRequest struct { // CustomerServiceEmail: The customer service email. CustomerServiceEmail string `json:"customerServiceEmail,omitempty"` // ForceSendFields is a list of field names (e.g. // "CustomerServiceEmail") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CustomerServiceEmail") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
OnboardBuyOnGoogleProgramRequest: Request message for the OnboardProgram method.
func (*OnboardBuyOnGoogleProgramRequest) MarshalJSON ¶ added in v0.41.0
func (s *OnboardBuyOnGoogleProgramRequest) MarshalJSON() ([]byte, error)
type Order ¶
type Order struct { // Acknowledged: Whether the order was acknowledged. Acknowledged bool `json:"acknowledged,omitempty"` // Annotations: List of key-value pairs that are attached to a given // order. Annotations []*OrderOrderAnnotation `json:"annotations,omitempty"` // BillingAddress: The billing address. BillingAddress *OrderAddress `json:"billingAddress,omitempty"` // Customer: The details of the customer who placed the order. Customer *OrderCustomer `json:"customer,omitempty"` // DeliveryDetails: Delivery details for shipments of type `delivery`. DeliveryDetails *OrderDeliveryDetails `json:"deliveryDetails,omitempty"` // Id: The REST ID of the order. Globally unique. Id string `json:"id,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#order" Kind string `json:"kind,omitempty"` // LineItems: Line items that are ordered. LineItems []*OrderLineItem `json:"lineItems,omitempty"` MerchantId uint64 `json:"merchantId,omitempty,string"` // MerchantOrderId: Merchant-provided ID of the order. MerchantOrderId string `json:"merchantOrderId,omitempty"` // NetPriceAmount: The net amount for the order (price part). For // example, if an order was originally for $100 and a refund was issued // for $20, the net amount will be $80. NetPriceAmount *Price `json:"netPriceAmount,omitempty"` // NetTaxAmount: The net amount for the order (tax part). Note that in // certain cases due to taxable base adjustment `netTaxAmount` might not // match to a sum of tax field across all lineItems and refunds. NetTaxAmount *Price `json:"netTaxAmount,omitempty"` // PaymentStatus: The status of the payment. Acceptable values are: - // "paymentCaptured" - "paymentRejected" - "paymentSecured" - // "pendingAuthorization" PaymentStatus string `json:"paymentStatus,omitempty"` // PickupDetails: Pickup details for shipments of type `pickup`. PickupDetails *OrderPickupDetails `json:"pickupDetails,omitempty"` // PlacedDate: The date when the order was placed, in ISO 8601 format. PlacedDate string `json:"placedDate,omitempty"` // Promotions: Promotions associated with the order. To determine which // promotions apply to which products, check the // `Promotions[].appliedItems[].lineItemId` field against the // `LineItems[].id` field for each promotion. If a promotion is applied // to more than 1 offerId, divide the discount value by the number of // affected offers to determine how much discount to apply to each // offerId. Examples: 1. To calculate price paid by the customer for a // single line item including the discount: For each promotion, subtract // the `LineItems[].adjustments[].priceAdjustment.value` amount from the // `LineItems[].Price.value`. 2. To calculate price paid by the customer // for a single line item including the discount in case of multiple // quantity: For each promotion, divide the // `LineItems[].adjustments[].priceAdjustment.value` by the quantity of // products then subtract the resulting value from the // `LineItems[].Product.Price.value` for each quantity item. Only 1 // promotion can be applied to an offerId in a given order. To refund an // item which had a promotion applied to it, make sure to refund the // amount after first subtracting the promotion discount from the item // price. 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"` // Status: The status of the order. Acceptable values are: - // "canceled" - "delivered" - "inProgress" - // "partiallyDelivered" - "partiallyReturned" - "partiallyShipped" // - "pendingShipment" - "returned" - "shipped" Status string `json:"status,omitempty"` // TaxCollector: The party responsible for collecting and remitting // taxes. Acceptable values are: - "marketplaceFacilitator" - // "merchant" TaxCollector string `json:"taxCollector,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Acknowledged") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Acknowledged") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Order: Order. Production access (all methods) requires the order manager role. Sandbox access does not.
func (*Order) MarshalJSON ¶
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. For // example, a state like California ("CA") or a province like Quebec // ("QC"). Region string `json:"region,omitempty"` // StreetAddress: Street-level part of the address. StreetAddress []string `json:"streetAddress,omitempty"` // ForceSendFields is a list of field names (e.g. "Country") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Country") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrderAddress) MarshalJSON ¶
func (s *OrderAddress) MarshalJSON() ([]byte, error)
type OrderCancellation ¶
type OrderCancellation struct { // Actor: The actor that created the cancellation. Acceptable values // are: - "customer" - "googleBot" - "googleCustomerService" - // "googlePayments" - "googleSabre" - "merchant" 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 canceled // with a noInventory reason will lead to the removal of the product // from Buy on Google until you make an update to that product. This // will not affect your Shopping ads. Acceptable values are: - // "autoPostInternal" - "autoPostInvalidBillingAddress" - // "autoPostNoInventory" - "autoPostPriceError" - // "autoPostUndeliverableShippingAddress" - "couponAbuse" - // "customerCanceled" - "customerInitiatedCancel" - // "customerSupportRequested" - "failToPushOrderGoogleError" - // "failToPushOrderMerchantError" - // "failToPushOrderMerchantFulfillmentError" - // "failToPushOrderToMerchant" - // "failToPushOrderToMerchantOutOfStock" - "invalidCoupon" - // "malformedShippingAddress" - "merchantDidNotShipOnTime" - // "noInventory" - "orderTimeout" - "other" - "paymentAbuse" - // "paymentDeclined" - "priceError" - "returnRefundAbuse" - // "shippingPriceError" - "taxError" - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" 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 { // FullName: Full name of the customer. FullName string `json:"fullName,omitempty"` // InvoiceReceivingEmail: Email address for the merchant to send // value-added tax or invoice documentation of the order. Only the last // document sent is made available to the customer. For more // information, see About automated VAT invoicing for Buy on Google. InvoiceReceivingEmail string `json:"invoiceReceivingEmail,omitempty"` // LoyaltyInfo: Loyalty program information. LoyaltyInfo *OrderCustomerLoyaltyInfo `json:"loyaltyInfo,omitempty"` // MarketingRightsInfo: Customer's marketing preferences. Contains the // marketing opt-in information that is current at the time that the // merchant call. User preference selections can change from one order // to the next so preferences must be checked with every order. MarketingRightsInfo *OrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,omitempty"` // ForceSendFields is a list of field names (e.g. "FullName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FullName") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a 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 OrderCustomerLoyaltyInfo ¶ added in v0.8.0
type OrderCustomerLoyaltyInfo struct { // LoyaltyNumber: The loyalty card/membership number. LoyaltyNumber string `json:"loyaltyNumber,omitempty"` // Name: Name of card/membership holder, this field will be populated // when Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "LoyaltyNumber") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LoyaltyNumber") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrderCustomerLoyaltyInfo) MarshalJSON ¶ added in v0.8.0
func (s *OrderCustomerLoyaltyInfo) MarshalJSON() ([]byte, error)
type OrderCustomerMarketingRightsInfo ¶
type OrderCustomerMarketingRightsInfo struct { // ExplicitMarketingPreference: Last known customer selection regarding // marketing preferences. In certain cases this selection might not be // known, so this field would be empty. If a customer selected `granted` // in their most recent order, they can be subscribed to marketing // emails. Customers who have chosen `denied` must not be subscribed, or // must be unsubscribed if already opted-in. Acceptable values are: - // "denied" - "granted" ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"` // LastUpdatedTimestamp: Timestamp when last time marketing preference // was updated. Could be empty, if user wasn't offered a selection yet. LastUpdatedTimestamp string `json:"lastUpdatedTimestamp,omitempty"` // MarketingEmailAddress: Email address that can be used for marketing // purposes. The field may be empty even if // `explicitMarketingPreference` is 'granted'. This happens when // retrieving an old order from the customer who deleted their account. MarketingEmailAddress string `json:"marketingEmailAddress,omitempty"` // ForceSendFields is a list of field names (e.g. // "ExplicitMarketingPreference") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "ExplicitMarketingPreference") to include in API requests with the // JSON null value. By default, fields with empty values are omitted // from API requests. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrderCustomerMarketingRightsInfo) MarshalJSON ¶
func (s *OrderCustomerMarketingRightsInfo) 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 { // Adjustments: Price and tax adjustments applied on the line item. Adjustments []*OrderLineItemAdjustment `json:"adjustments,omitempty"` // Annotations: Annotations that are attached to the line item. Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"` // Cancellations: Cancellations of the line item. Cancellations []*OrderCancellation `json:"cancellations,omitempty"` // Id: The ID of the line item. Id string `json:"id,omitempty"` // Price: Total price for the line item. For example, if two items for // $10 are purchased, the total price will be $20. Price *Price `json:"price,omitempty"` // Product: Product data as seen by customer from the time of the order // placement. Note that certain attributes values (e.g. title or gtin) // might be reformatted and no longer match values submitted via product // feed. Product *OrderLineItemProduct `json:"product,omitempty"` // QuantityCanceled: Number of items canceled. QuantityCanceled int64 `json:"quantityCanceled,omitempty"` // QuantityDelivered: Number of items delivered. QuantityDelivered int64 `json:"quantityDelivered,omitempty"` // QuantityOrdered: Number of items ordered. QuantityOrdered int64 `json:"quantityOrdered,omitempty"` // QuantityPending: Number of items pending. QuantityPending int64 `json:"quantityPending,omitempty"` // QuantityReadyForPickup: Number of items ready for pickup. QuantityReadyForPickup int64 `json:"quantityReadyForPickup,omitempty"` // QuantityReturned: Number of items returned. QuantityReturned int64 `json:"quantityReturned,omitempty"` // QuantityShipped: Number of items shipped. QuantityShipped int64 `json:"quantityShipped,omitempty"` // QuantityUndeliverable: Number of items undeliverable. QuantityUndeliverable int64 `json:"quantityUndeliverable,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. "Adjustments") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Adjustments") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a 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 OrderLineItemAdjustment ¶ added in v0.7.0
type OrderLineItemAdjustment struct { // PriceAdjustment: Adjustment for total price of the line item. PriceAdjustment *Price `json:"priceAdjustment,omitempty"` // TaxAdjustment: Adjustment for total tax of the line item. TaxAdjustment *Price `json:"taxAdjustment,omitempty"` // Type: Type of this adjustment. Acceptable values are: - "promotion" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "PriceAdjustment") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PriceAdjustment") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*OrderLineItemAdjustment) MarshalJSON ¶ added in v0.7.0
func (s *OrderLineItemAdjustment) MarshalJSON() ([]byte, error)
type OrderLineItemProduct ¶
type OrderLineItemProduct struct { // Brand: Brand of the item. Brand string `json:"brand,omitempty"` // Condition: Condition or state of the item. Acceptable values are: - // "new" - "refurbished" - "used" Condition string `json:"condition,omitempty"` // ContentLanguage: The two-letter ISO 639-1 language code for the item. ContentLanguage string `json:"contentLanguage,omitempty"` // Fees: Associated fees at order creation time. Fees []*OrderLineItemProductFee `json:"fees,omitempty"` // Gtin: Global Trade Item Number (GTIN) of the item. Gtin string `json:"gtin,omitempty"` // Id: The REST ID of the product. Id string `json:"id,omitempty"` // ImageLink: URL of an image of the item. ImageLink string `json:"imageLink,omitempty"` // ItemGroupId: Shared identifier for all variants of the same product. ItemGroupId string `json:"itemGroupId,omitempty"` // Mpn: Manufacturer Part Number (MPN) of the item. Mpn string `json:"mpn,omitempty"` // OfferId: An identifier of the item. OfferId string `json:"offerId,omitempty"` // Price: Price of the item. Price *Price `json:"price,omitempty"` // ShownImage: URL to the cached image shown to the user when order was // placed. ShownImage string `json:"shownImage,omitempty"` // TargetCountry: The CLDR territory // code of the target country of // the product. TargetCountry string `json:"targetCountry,omitempty"` // Title: The title of the product. Title string `json:"title,omitempty"` // VariantAttributes: Variant attributes for the item. These are // dimensions of the product, such as color, gender, material, pattern, // and size. You can find a comprehensive list of variant attributes // here. VariantAttributes []*OrderLineItemProductVariantAttribute `json:"variantAttributes,omitempty"` // ForceSendFields is a list of field names (e.g. "Brand") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Brand") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrderLineItemProduct) MarshalJSON ¶
func (s *OrderLineItemProduct) MarshalJSON() ([]byte, error)
type OrderLineItemProductFee ¶
type OrderLineItemProductFee struct { // Amount: Amount of the fee. Amount *Price `json:"amount,omitempty"` // Name: Name of the fee. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Amount") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Amount") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrderLineItemProductFee) MarshalJSON ¶
func (s *OrderLineItemProductFee) 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: Required. How many days later the item can be returned. DaysToReturn int64 `json:"daysToReturn,omitempty"` // IsReturnable: Required. Whether the item is returnable. IsReturnable bool `json:"isReturnable,omitempty"` // PolicyUrl: Required. 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: Required. The delivery by date, in ISO 8601 format. DeliverByDate string `json:"deliverByDate,omitempty"` // Method: Required. Details of the shipping method. Method *OrderLineItemShippingDetailsMethod `json:"method,omitempty"` // PickupPromiseInMinutes: The promised time in minutes in which the // order will be ready for pickup. This only applies to // buy-online-pickup-in-store same-day order. PickupPromiseInMinutes int64 `json:"pickupPromiseInMinutes,omitempty"` // ShipByDate: Required. The ship by date, in ISO 8601 format. ShipByDate string `json:"shipByDate,omitempty"` // Type: Type of shipment. Indicates whether `deliveryDetails` or // `pickupDetails` is applicable for this shipment. Acceptable values // are: - "delivery" - "pickup" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "DeliverByDate") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DeliverByDate") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrderLineItemShippingDetails) MarshalJSON ¶
func (s *OrderLineItemShippingDetails) MarshalJSON() ([]byte, error)
type OrderLineItemShippingDetailsMethod ¶
type OrderLineItemShippingDetailsMethod struct { // Carrier: The carrier for the shipping. Optional. See // `shipments[].carrier` for a list of acceptable values. Carrier string `json:"carrier,omitempty"` // MaxDaysInTransit: Required. Maximum transit time. MaxDaysInTransit int64 `json:"maxDaysInTransit,omitempty"` // MethodName: Required. The name of the shipping method. MethodName string `json:"methodName,omitempty"` // MinDaysInTransit: Required. 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 OrderMerchantProvidedAnnotation ¶
type OrderMerchantProvidedAnnotation struct { // Key: Key for additional merchant provided (as key-value pairs) // annotation about the line item. Key string `json:"key,omitempty"` // Value: Value for additional merchant provided (as key-value pairs) // annotation about the line item. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Key") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrderMerchantProvidedAnnotation) MarshalJSON ¶
func (s *OrderMerchantProvidedAnnotation) MarshalJSON() ([]byte, error)
type OrderOrderAnnotation ¶ added in v0.27.0
type OrderOrderAnnotation struct { // Key: Key for additional google provided (as key-value pairs) // annotation. Key string `json:"key,omitempty"` // Value: Value for additional google provided (as key-value pairs) // annotation. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Key") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrderOrderAnnotation) MarshalJSON ¶ added in v0.27.0
func (s *OrderOrderAnnotation) MarshalJSON() ([]byte, error)
type OrderPickupDetails ¶ added in v0.11.0
type OrderPickupDetails struct { // Address: Address of the pickup location where the shipment should be // sent. Note that `recipientName` in the address is the name of the // business at the pickup location. Address *OrderAddress `json:"address,omitempty"` // Collectors: Collectors authorized to pick up shipment from the pickup // location. Collectors []*OrderPickupDetailsCollector `json:"collectors,omitempty"` // LocationId: ID of the pickup location. LocationId string `json:"locationId,omitempty"` // PickupType: The pickup type of this order. Acceptable values are: - // "merchantStore" - "merchantStoreCurbside" - // "merchantStoreLocker" - "thirdPartyPickupPoint" - // "thirdPartyLocker" PickupType string `json:"pickupType,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 (*OrderPickupDetails) MarshalJSON ¶ added in v0.11.0
func (s *OrderPickupDetails) MarshalJSON() ([]byte, error)
type OrderPickupDetailsCollector ¶ added in v0.11.0
type OrderPickupDetailsCollector struct { // Name: Name of the person picking up the shipment. Name string `json:"name,omitempty"` // PhoneNumber: Phone number of the person picking up the shipment. PhoneNumber string `json:"phoneNumber,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 (*OrderPickupDetailsCollector) MarshalJSON ¶ added in v0.11.0
func (s *OrderPickupDetailsCollector) MarshalJSON() ([]byte, error)
type OrderPromotion ¶
type OrderPromotion struct { // ApplicableItems: Items that this promotion may be applied to. If // empty, there are no restrictions on applicable items and quantity. // This field will also be empty for shipping promotions because // shipping is not tied to any specific item. ApplicableItems []*OrderPromotionItem `json:"applicableItems,omitempty"` // AppliedItems: Items that this promotion have been applied to. Do not // provide for `orders.createtestorder`. This field will be empty for // shipping promotions because shipping is not tied to any specific // item. AppliedItems []*OrderPromotionItem `json:"appliedItems,omitempty"` // EndTime: Promotion end time in ISO 8601 format. Date, time, and // offset required, e.g., "2020-01-02T09:00:00+01:00" or // "2020-01-02T09:00:00Z". EndTime string `json:"endTime,omitempty"` // Funder: Required. The party funding the promotion. Only `merchant` is // supported for `orders.createtestorder`. Acceptable values are: - // "google" - "merchant" Funder string `json:"funder,omitempty"` // MerchantPromotionId: Required. This field is used to identify // promotions within merchants' own systems. MerchantPromotionId string `json:"merchantPromotionId,omitempty"` // PriceValue: Estimated discount applied to price. Amount is pre-tax or // post-tax depending on location of order. PriceValue *Price `json:"priceValue,omitempty"` // ShortTitle: A short title of the promotion to be shown on the // checkout page. Do not provide for `orders.createtestorder`. ShortTitle string `json:"shortTitle,omitempty"` // StartTime: Promotion start time in ISO 8601 format. Date, time, and // offset required, e.g., "2020-01-02T09:00:00+01:00" or // "2020-01-02T09:00:00Z". StartTime string `json:"startTime,omitempty"` // Subtype: Required. The category of the promotion. Only `moneyOff` is // supported for `orders.createtestorder`. Acceptable values are: - // "buyMGetMoneyOff" - "buyMGetNMoneyOff" - "buyMGetNPercentOff" - // "buyMGetPercentOff" - "freeGift" - "freeGiftWithItemId" - // "freeGiftWithValue" - "freeShippingOvernight" - // "freeShippingStandard" - "freeShippingTwoDay" - "moneyOff" - // "percentOff" - "rewardPoints" - "salePrice" Subtype string `json:"subtype,omitempty"` // TaxValue: Estimated discount applied to tax (if allowed by law). Do // not provide for `orders.createtestorder`. TaxValue *Price `json:"taxValue,omitempty"` // Title: Required. The title of the promotion. Title string `json:"title,omitempty"` // Type: Required. The scope of the promotion. Only `product` is // supported for `orders.createtestorder`. Acceptable values are: - // "product" - "shipping" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "ApplicableItems") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ApplicableItems") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a 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 OrderPromotionItem ¶
type OrderPromotionItem struct { // LineItemId: The line item ID of a product. Do not provide for // `orders.createtestorder`. LineItemId string `json:"lineItemId,omitempty"` // OfferId: Required. Offer ID of a product. Only for // `orders.createtestorder`. OfferId string `json:"offerId,omitempty"` // ProductId: `orders.createtestorder`. ProductId string `json:"productId,omitempty"` // Quantity: The quantity of the associated product. Do not provide for // `orders.createtestorder`. 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 (*OrderPromotionItem) MarshalJSON ¶
func (s *OrderPromotionItem) MarshalJSON() ([]byte, error)
type OrderRefund ¶
type OrderRefund struct { // Actor: The actor that created the refund. Acceptable values are: - // "customer" - "googleBot" - "googleCustomerService" - // "googlePayments" - "googleSabre" - "merchant" 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. Acceptable values are: - // "adjustment" - "autoPostInternal" - // "autoPostInvalidBillingAddress" - "autoPostNoInventory" - // "autoPostPriceError" - "autoPostUndeliverableShippingAddress" - // "couponAbuse" - "courtesyAdjustment" - "customerCanceled" - // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" // - "customerSupportRequested" - "deliveredLateByCarrier" - // "deliveredTooLate" - "expiredItem" - // "failToPushOrderGoogleError" - "failToPushOrderMerchantError" - // "failToPushOrderMerchantFulfillmentError" - // "failToPushOrderToMerchant" - // "failToPushOrderToMerchantOutOfStock" - "feeAdjustment" - // "invalidCoupon" - "lateShipmentCredit" - // "malformedShippingAddress" - "merchantDidNotShipOnTime" - // "noInventory" - "orderTimeout" - "other" - "paymentAbuse" - // "paymentDeclined" - "priceAdjustment" - "priceError" - // "productArrivedDamaged" - "productNotAsDescribed" - // "promoReallocation" - "qualityNotAsExpected" - // "returnRefundAbuse" - "shippingCostAdjustment" - // "shippingPriceError" - "taxAdjustment" - "taxError" - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - // "wrongProductShipped" 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 OrderReportDisbursement ¶
type OrderReportDisbursement struct { // DisbursementAmount: The disbursement amount. DisbursementAmount *Price `json:"disbursementAmount,omitempty"` // DisbursementCreationDate: The disbursement date, in ISO 8601 format. DisbursementCreationDate string `json:"disbursementCreationDate,omitempty"` // DisbursementDate: The date the disbursement was initiated, in ISO // 8601 format. DisbursementDate string `json:"disbursementDate,omitempty"` // DisbursementId: The ID of the disbursement. DisbursementId string `json:"disbursementId,omitempty"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` // ForceSendFields is a list of field names (e.g. "DisbursementAmount") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisbursementAmount") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
OrderReportDisbursement: Order disbursement. All methods require the payment analyst role.
func (*OrderReportDisbursement) MarshalJSON ¶
func (s *OrderReportDisbursement) MarshalJSON() ([]byte, error)
type OrderReportTransaction ¶
type OrderReportTransaction struct { // DisbursementAmount: The disbursement amount. DisbursementAmount *Price `json:"disbursementAmount,omitempty"` // DisbursementCreationDate: The date the disbursement was created, in // ISO 8601 format. DisbursementCreationDate string `json:"disbursementCreationDate,omitempty"` // DisbursementDate: The date the disbursement was initiated, in ISO // 8601 format. DisbursementDate string `json:"disbursementDate,omitempty"` // DisbursementId: The ID of the disbursement. DisbursementId string `json:"disbursementId,omitempty"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` // MerchantOrderId: Merchant-provided ID of the order. MerchantOrderId string `json:"merchantOrderId,omitempty"` // OrderId: The ID of the order. OrderId string `json:"orderId,omitempty"` // ProductAmount: Total amount for the items. ProductAmount *ProductAmount `json:"productAmount,omitempty"` // TransactionDate: The date of the transaction, in ISO 8601 format. TransactionDate string `json:"transactionDate,omitempty"` // ForceSendFields is a list of field names (e.g. "DisbursementAmount") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisbursementAmount") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*OrderReportTransaction) MarshalJSON ¶
func (s *OrderReportTransaction) MarshalJSON() ([]byte, error)
type OrderReturn ¶
type OrderReturn struct { // Actor: The actor that created the refund. Acceptable values are: - // "customer" - "googleBot" - "googleCustomerService" - // "googlePayments" - "googleSabre" - "merchant" 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. Acceptable values are: - // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" // - "deliveredTooLate" - "expiredItem" - "invalidCoupon" - // "malformedShippingAddress" - "other" - "productArrivedDamaged" // - "productNotAsDescribed" - "qualityNotAsExpected" - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - // "wrongProductShipped" 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. For supported carriers, // Google includes the carrier name and tracking URL in emails to // customers. For select supported carriers, Google also automatically // updates the shipment status based on the provided shipment ID. // *Note:* You can also use unsupported carriers, but emails to // customers will not include the carrier name or tracking URL, and // there will be no automatic order status updates. Supported carriers // for US are: - "ups" (United Parcel Service) *automatic status // updates* - "usps" (United States Postal Service) *automatic status // updates* - "fedex" (FedEx) *automatic status updates * - "dhl" // (DHL eCommerce) *automatic status updates* (US only) - "ontrac" // (OnTrac) *automatic status updates * - "dhl express" (DHL Express) // - "deliv" (Deliv) - "dynamex" (TForce) - "lasership" // (LaserShip) - "mpx" (Military Parcel Xpress) - "uds" (United // Delivery Service) - "efw" (Estes Forwarding Worldwide) - "jd // logistics" (JD Logistics) - "yunexpress" (YunExpress) - "china // post" (China Post) - "china ems" (China Post Express Mail Service) // - "singapore post" (Singapore Post) - "pos malaysia" (Pos // Malaysia) - "postnl" (PostNL) - "ptt" (PTT Turkish Post) - // "eub" (ePacket) - "chukou1" (Chukou1 Logistics) - "bestex" // (Best Express) - "canada post" (Canada Post) - "purolator" // (Purolator) - "canpar" (Canpar) - "india post" (India Post) - // "blue dart" (Blue Dart) - "delhivery" (Delhivery) - "dtdc" // (DTDC) - "tpc india" (TPC India) Supported carriers for FR are: - // "la poste" (La Poste) *automatic status updates * - "colissimo" // (Colissimo by La Poste) *automatic status updates* - "ups" (United // Parcel Service) *automatic status updates * - "chronopost" // (Chronopost by La Poste) - "gls" (General Logistics Systems France) // - "dpd" (DPD Group by GeoPost) - "bpost" (Belgian Post Group) - // "colis prive" (Colis Privé) - "boxtal" (Boxtal) - "geodis" // (GEODIS) - "tnt" (TNT) - "db schenker" (DB Schenker) - "aramex" // (Aramex) 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 `delivered` 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"` // ScheduledDeliveryDetails: Delivery details of the shipment if // scheduling is needed. ScheduledDeliveryDetails *OrderShipmentScheduledDeliveryDetails `json:"scheduledDeliveryDetails,omitempty"` // ShipmentGroupId: The shipment group ID of the shipment. This is set // in shiplineitems request. ShipmentGroupId string `json:"shipmentGroupId,omitempty"` // Status: The status of the shipment. Acceptable values are: - // "delivered" - "readyForPickup" - "shipped" - "undeliverable" 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. This value is // assigned by Google when an order is created. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` // ProductId: The ID of the product to ship. This is the REST ID used in // the products service. Either lineItemId or productId is required. ProductId string `json:"productId,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 OrderShipmentScheduledDeliveryDetails ¶ added in v0.27.0
type OrderShipmentScheduledDeliveryDetails struct { // CarrierPhoneNumber: The phone number of the carrier fulfilling the // delivery. The phone number is formatted as the international notation // in ITU-T Recommendation E.123 (e.g., "+41 44 668 1800"). CarrierPhoneNumber string `json:"carrierPhoneNumber,omitempty"` // ScheduledDate: The date a shipment is scheduled for delivery, in ISO // 8601 format. ScheduledDate string `json:"scheduledDate,omitempty"` // ForceSendFields is a list of field names (e.g. "CarrierPhoneNumber") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CarrierPhoneNumber") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*OrderShipmentScheduledDeliveryDetails) MarshalJSON ¶ added in v0.27.0
func (s *OrderShipmentScheduledDeliveryDetails) MarshalJSON() ([]byte, error)
type OrderTrackingSignal ¶ added in v0.36.0
type OrderTrackingSignal struct { // CustomerShippingFee: The shipping fee of the order; this value should // be set to zero in the case of free shipping. CustomerShippingFee *PriceAmount `json:"customerShippingFee,omitempty"` // DeliveryPostalCode: Required. The delivery postal code, as a // continuous string without spaces or dashes, e.g. "95016". DeliveryPostalCode string `json:"deliveryPostalCode,omitempty"` // DeliveryRegionCode: Required. The [CLDR territory code] // (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) // for the shipping destination. DeliveryRegionCode string `json:"deliveryRegionCode,omitempty"` // LineItems: Information about line items in the order. LineItems []*OrderTrackingSignalLineItemDetails `json:"lineItems,omitempty"` // MerchantId: The Google merchant ID of this order tracking signal. // This value is optional. If left unset, the caller's merchant ID is // used. You must request access in order to provide data on behalf of // another merchant. For more information, see Submitting Order Tracking // Signals (/shopping-content/guides/order-tracking-signals). MerchantId int64 `json:"merchantId,omitempty,string"` // OrderCreatedTime: Required. The time when the order was created on // the merchant side. Include the year and timezone string, if // available. OrderCreatedTime *DateTime `json:"orderCreatedTime,omitempty"` // OrderId: Required. The ID of the order on the merchant side. OrderId string `json:"orderId,omitempty"` // OrderTrackingSignalId: Output only. The ID that uniquely identifies // this order tracking signal. OrderTrackingSignalId int64 `json:"orderTrackingSignalId,omitempty,string"` // ShipmentLineItemMapping: The mapping of the line items to the // shipment information. ShipmentLineItemMapping []*OrderTrackingSignalShipmentLineItemMapping `json:"shipmentLineItemMapping,omitempty"` // ShippingInfo: The shipping information for the order. ShippingInfo []*OrderTrackingSignalShippingInfo `json:"shippingInfo,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CustomerShippingFee") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CustomerShippingFee") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
OrderTrackingSignal: Represents a merchant trade from which signals are extracted, e.g. shipping.
func (*OrderTrackingSignal) MarshalJSON ¶ added in v0.36.0
func (s *OrderTrackingSignal) MarshalJSON() ([]byte, error)
type OrderTrackingSignalLineItemDetails ¶ added in v0.36.0
type OrderTrackingSignalLineItemDetails struct { // Gtin: The Global Trade Item Number. Gtin string `json:"gtin,omitempty"` // LineItemId: Required. The ID for this line item. LineItemId string `json:"lineItemId,omitempty"` // Mpn: The manufacturer part number. Mpn string `json:"mpn,omitempty"` // ProductId: Required. The Content API REST ID of the product, in the // form channel:contentLanguage:targetCountry:offerId. ProductId string `json:"productId,omitempty"` // Quantity: Required. The quantity of the line item in the order. Quantity int64 `json:"quantity,omitempty,string"` // ForceSendFields is a list of field names (e.g. "Gtin") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Gtin") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
OrderTrackingSignalLineItemDetails: The line items of the order.
func (*OrderTrackingSignalLineItemDetails) MarshalJSON ¶ added in v0.36.0
func (s *OrderTrackingSignalLineItemDetails) MarshalJSON() ([]byte, error)
type OrderTrackingSignalShipmentLineItemMapping ¶ added in v0.36.0
type OrderTrackingSignalShipmentLineItemMapping struct { // LineItemId: Required. The line item ID. LineItemId string `json:"lineItemId,omitempty"` // Quantity: Required. The line item quantity in the shipment. Quantity int64 `json:"quantity,omitempty,string"` // ShipmentId: Required. The shipment ID. ShipmentId string `json:"shipmentId,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:"-"` }
OrderTrackingSignalShipmentLineItemMapping: Represents how many items are in the shipment for the given shipment_id and line_item_id.
func (*OrderTrackingSignalShipmentLineItemMapping) MarshalJSON ¶ added in v0.36.0
func (s *OrderTrackingSignalShipmentLineItemMapping) MarshalJSON() ([]byte, error)
type OrderTrackingSignalShippingInfo ¶ added in v0.36.0
type OrderTrackingSignalShippingInfo struct { // ActualDeliveryTime: The time when the shipment was actually // delivered. Include the year and timezone string, if available. This // field is required, if one of the following fields is absent: // tracking_id or carrier_name. ActualDeliveryTime *DateTime `json:"actualDeliveryTime,omitempty"` // CarrierName: The name of the shipping carrier for the delivery. This // field is required if one of the following fields is absent: // earliest_delivery_promise_time, latest_delivery_promise_time, and // actual_delivery_time. CarrierName string `json:"carrierName,omitempty"` // CarrierServiceName: The service type for fulfillment, e.g., GROUND, // FIRST_CLASS, etc. CarrierServiceName string `json:"carrierServiceName,omitempty"` // EarliestDeliveryPromiseTime: The earliest delivery promised time. // Include the year and timezone string, if available. This field is // required, if one of the following fields is absent: tracking_id or // carrier_name. EarliestDeliveryPromiseTime *DateTime `json:"earliestDeliveryPromiseTime,omitempty"` // LatestDeliveryPromiseTime: The latest delivery promised time. Include // the year and timezone string, if available. This field is required, // if one of the following fields is absent: tracking_id or // carrier_name. LatestDeliveryPromiseTime *DateTime `json:"latestDeliveryPromiseTime,omitempty"` // OriginPostalCode: The origin postal code, as a continuous string // without spaces or dashes, e.g. "95016". OriginPostalCode string `json:"originPostalCode,omitempty"` // OriginRegionCode: The [CLDR territory code] // (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) // for the shipping origin. OriginRegionCode string `json:"originRegionCode,omitempty"` // ShipmentId: Required. The shipment ID. ShipmentId string `json:"shipmentId,omitempty"` // ShippedTime: The time when the shipment was shipped. Include the year // and timezone string, if available. ShippedTime *DateTime `json:"shippedTime,omitempty"` // ShippingStatus: The status of the shipment. // // Possible values: // "SHIPPING_STATE_UNSPECIFIED" - The shipping status is not known to // merchant. // "SHIPPED" - All items are shipped. // "DELIVERED" - The shipment is already delivered. ShippingStatus string `json:"shippingStatus,omitempty"` // TrackingId: The tracking ID of the shipment. This field is required // if one of the following fields is absent: // earliest_delivery_promise_time, latest_delivery_promise_time, and // actual_delivery_time. TrackingId string `json:"trackingId,omitempty"` // ForceSendFields is a list of field names (e.g. "ActualDeliveryTime") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ActualDeliveryTime") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
OrderTrackingSignalShippingInfo: The shipping information for the order.
func (*OrderTrackingSignalShippingInfo) MarshalJSON ¶ added in v0.36.0
func (s *OrderTrackingSignalShippingInfo) MarshalJSON() ([]byte, error)
type OrderinvoicesCreateChargeInvoiceRequest ¶
type OrderinvoicesCreateChargeInvoiceRequest struct { // InvoiceId: [required] The ID of the invoice. InvoiceId string `json:"invoiceId,omitempty"` // InvoiceSummary: [required] Invoice summary. InvoiceSummary *InvoiceSummary `json:"invoiceSummary,omitempty"` // LineItemInvoices: [required] Invoice details per line item. LineItemInvoices []*ShipmentInvoiceLineItemInvoice `json:"lineItemInvoices,omitempty"` // OperationId: [required] The ID of the operation, unique across all // operations for a given order. OperationId string `json:"operationId,omitempty"` // ShipmentGroupId: [required] ID of the shipment group. It is assigned // by the merchant in the `shipLineItems` method and is used to group // multiple line items that have the same kind of shipping charges. ShipmentGroupId string `json:"shipmentGroupId,omitempty"` // ForceSendFields is a list of field names (e.g. "InvoiceId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "InvoiceId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrderinvoicesCreateChargeInvoiceRequest) MarshalJSON ¶
func (s *OrderinvoicesCreateChargeInvoiceRequest) MarshalJSON() ([]byte, error)
type OrderinvoicesCreateChargeInvoiceResponse ¶
type OrderinvoicesCreateChargeInvoiceResponse struct { // ExecutionStatus: The status of the execution. Acceptable values are: // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#orderinvoicesCreateChargeInvoiceResponse". 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 (*OrderinvoicesCreateChargeInvoiceResponse) MarshalJSON ¶
func (s *OrderinvoicesCreateChargeInvoiceResponse) MarshalJSON() ([]byte, error)
type OrderinvoicesCreateRefundInvoiceRequest ¶
type OrderinvoicesCreateRefundInvoiceRequest struct { // InvoiceId: [required] The ID of the invoice. InvoiceId string `json:"invoiceId,omitempty"` // OperationId: [required] The ID of the operation, unique across all // operations for a given order. OperationId string `json:"operationId,omitempty"` // RefundOnlyOption: Option to create a refund-only invoice. Exactly one // of `refundOnlyOption` or `returnOption` must be provided. RefundOnlyOption *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption `json:"refundOnlyOption,omitempty"` // ReturnOption: Option to create an invoice for a refund and mark all // items within the invoice as returned. Exactly one of // `refundOnlyOption` or `returnOption` must be provided. ReturnOption *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption `json:"returnOption,omitempty"` // ShipmentInvoices: Invoice details for different shipment groups. ShipmentInvoices []*ShipmentInvoice `json:"shipmentInvoices,omitempty"` // ForceSendFields is a list of field names (e.g. "InvoiceId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "InvoiceId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrderinvoicesCreateRefundInvoiceRequest) MarshalJSON ¶
func (s *OrderinvoicesCreateRefundInvoiceRequest) MarshalJSON() ([]byte, error)
type OrderinvoicesCreateRefundInvoiceResponse ¶
type OrderinvoicesCreateRefundInvoiceResponse struct { // ExecutionStatus: The status of the execution. Acceptable values are: // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#orderinvoicesCreateRefundInvoiceResponse". 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 (*OrderinvoicesCreateRefundInvoiceResponse) MarshalJSON ¶
func (s *OrderinvoicesCreateRefundInvoiceResponse) MarshalJSON() ([]byte, error)
type OrderinvoicesCreatechargeinvoiceCall ¶
type OrderinvoicesCreatechargeinvoiceCall struct {
// contains filtered or unexported fields
}
func (*OrderinvoicesCreatechargeinvoiceCall) Context ¶
func (c *OrderinvoicesCreatechargeinvoiceCall) Context(ctx context.Context) *OrderinvoicesCreatechargeinvoiceCall
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 (*OrderinvoicesCreatechargeinvoiceCall) Do ¶
func (c *OrderinvoicesCreatechargeinvoiceCall) Do(opts ...googleapi.CallOption) (*OrderinvoicesCreateChargeInvoiceResponse, error)
Do executes the "content.orderinvoices.createchargeinvoice" call. Exactly one of *OrderinvoicesCreateChargeInvoiceResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrderinvoicesCreateChargeInvoiceResponse.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 (*OrderinvoicesCreatechargeinvoiceCall) Fields ¶
func (c *OrderinvoicesCreatechargeinvoiceCall) Fields(s ...googleapi.Field) *OrderinvoicesCreatechargeinvoiceCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrderinvoicesCreatechargeinvoiceCall) Header ¶
func (c *OrderinvoicesCreatechargeinvoiceCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrderinvoicesCreaterefundinvoiceCall ¶
type OrderinvoicesCreaterefundinvoiceCall struct {
// contains filtered or unexported fields
}
func (*OrderinvoicesCreaterefundinvoiceCall) Context ¶
func (c *OrderinvoicesCreaterefundinvoiceCall) Context(ctx context.Context) *OrderinvoicesCreaterefundinvoiceCall
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 (*OrderinvoicesCreaterefundinvoiceCall) Do ¶
func (c *OrderinvoicesCreaterefundinvoiceCall) Do(opts ...googleapi.CallOption) (*OrderinvoicesCreateRefundInvoiceResponse, error)
Do executes the "content.orderinvoices.createrefundinvoice" call. Exactly one of *OrderinvoicesCreateRefundInvoiceResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrderinvoicesCreateRefundInvoiceResponse.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 (*OrderinvoicesCreaterefundinvoiceCall) Fields ¶
func (c *OrderinvoicesCreaterefundinvoiceCall) Fields(s ...googleapi.Field) *OrderinvoicesCreaterefundinvoiceCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrderinvoicesCreaterefundinvoiceCall) Header ¶
func (c *OrderinvoicesCreaterefundinvoiceCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption ¶
type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption struct { // Description: Optional description of the refund reason. Description string `json:"description,omitempty"` // Reason: [required] Reason for the refund. Acceptable values are: - // "adjustment" - "autoPostInternal" - // "autoPostInvalidBillingAddress" - "autoPostNoInventory" - // "autoPostPriceError" - "autoPostUndeliverableShippingAddress" - // "couponAbuse" - "courtesyAdjustment" - "customerCanceled" - // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" // - "customerSupportRequested" - "deliveredLateByCarrier" - // "deliveredTooLate" - "expiredItem" - // "failToPushOrderGoogleError" - "failToPushOrderMerchantError" - // "failToPushOrderMerchantFulfillmentError" - // "failToPushOrderToMerchant" - // "failToPushOrderToMerchantOutOfStock" - "feeAdjustment" - // "invalidCoupon" - "lateShipmentCredit" - // "malformedShippingAddress" - "merchantDidNotShipOnTime" - // "noInventory" - "orderTimeout" - "other" - "paymentAbuse" - // "paymentDeclined" - "priceAdjustment" - "priceError" - // "productArrivedDamaged" - "productNotAsDescribed" - // "promoReallocation" - "qualityNotAsExpected" - // "returnRefundAbuse" - "shippingCostAdjustment" - // "shippingPriceError" - "taxAdjustment" - "taxError" - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - // "wrongProductShipped" Reason string `json:"reason,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption) MarshalJSON ¶
func (s *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption) MarshalJSON() ([]byte, error)
type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption ¶
type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption struct { // Description: Optional description of the return reason. Description string `json:"description,omitempty"` // Reason: [required] Reason for the return. Acceptable values are: - // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" // - "deliveredTooLate" - "expiredItem" - "invalidCoupon" - // "malformedShippingAddress" - "other" - "productArrivedDamaged" // - "productNotAsDescribed" - "qualityNotAsExpected" - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - // "wrongProductShipped" Reason string `json:"reason,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption) MarshalJSON ¶
func (s *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption) MarshalJSON() ([]byte, error)
type OrderinvoicesService ¶
type OrderinvoicesService struct {
// contains filtered or unexported fields
}
func NewOrderinvoicesService ¶
func NewOrderinvoicesService(s *APIService) *OrderinvoicesService
func (*OrderinvoicesService) Createchargeinvoice ¶
func (r *OrderinvoicesService) Createchargeinvoice(merchantId uint64, orderId string, orderinvoicescreatechargeinvoicerequest *OrderinvoicesCreateChargeInvoiceRequest) *OrderinvoicesCreatechargeinvoiceCall
Createchargeinvoice: Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice enabled orders.
func (*OrderinvoicesService) Createrefundinvoice ¶
func (r *OrderinvoicesService) Createrefundinvoice(merchantId uint64, orderId string, orderinvoicescreaterefundinvoicerequest *OrderinvoicesCreateRefundInvoiceRequest) *OrderinvoicesCreaterefundinvoiceCall
Createrefundinvoice: Creates a refund invoice for one or more shipment groups, and triggers a refund for orderinvoice enabled orders. This can only be used for line items that have previously been charged using `createChargeInvoice`. All amounts (except for the summary) are incremental with respect to the previous invoice.
type OrderreportsListDisbursementsResponse ¶
type OrderreportsListDisbursementsResponse struct { // Disbursements: The list of disbursements. Disbursements []*OrderReportDisbursement `json:"disbursements,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#orderreportsListDisbursementsResponse". Kind string `json:"kind,omitempty"` // NextPageToken: The token for the retrieval of the next page of // disbursements. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Disbursements") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Disbursements") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrderreportsListDisbursementsResponse) MarshalJSON ¶
func (s *OrderreportsListDisbursementsResponse) MarshalJSON() ([]byte, error)
type OrderreportsListTransactionsResponse ¶
type OrderreportsListTransactionsResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#orderreportsListTransactionsResponse". Kind string `json:"kind,omitempty"` // NextPageToken: The token for the retrieval of the next page of // transactions. NextPageToken string `json:"nextPageToken,omitempty"` // Transactions: The list of transactions. Transactions []*OrderReportTransaction `json:"transactions,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 (*OrderreportsListTransactionsResponse) MarshalJSON ¶
func (s *OrderreportsListTransactionsResponse) MarshalJSON() ([]byte, error)
type OrderreportsListdisbursementsCall ¶
type OrderreportsListdisbursementsCall struct {
// contains filtered or unexported fields
}
func (*OrderreportsListdisbursementsCall) Context ¶
func (c *OrderreportsListdisbursementsCall) Context(ctx context.Context) *OrderreportsListdisbursementsCall
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 (*OrderreportsListdisbursementsCall) DisbursementEndDate ¶
func (c *OrderreportsListdisbursementsCall) DisbursementEndDate(disbursementEndDate string) *OrderreportsListdisbursementsCall
DisbursementEndDate sets the optional parameter "disbursementEndDate": The last date which disbursements occurred. In ISO 8601 format. Default: current date.
func (*OrderreportsListdisbursementsCall) DisbursementStartDate ¶ added in v0.34.0
func (c *OrderreportsListdisbursementsCall) DisbursementStartDate(disbursementStartDate string) *OrderreportsListdisbursementsCall
DisbursementStartDate sets the optional parameter "disbursementStartDate": The first date which disbursements occurred. In ISO 8601 format.
func (*OrderreportsListdisbursementsCall) Do ¶
func (c *OrderreportsListdisbursementsCall) Do(opts ...googleapi.CallOption) (*OrderreportsListDisbursementsResponse, error)
Do executes the "content.orderreports.listdisbursements" call. Exactly one of *OrderreportsListDisbursementsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrderreportsListDisbursementsResponse.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 (*OrderreportsListdisbursementsCall) Fields ¶
func (c *OrderreportsListdisbursementsCall) Fields(s ...googleapi.Field) *OrderreportsListdisbursementsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrderreportsListdisbursementsCall) Header ¶
func (c *OrderreportsListdisbursementsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrderreportsListdisbursementsCall) IfNoneMatch ¶
func (c *OrderreportsListdisbursementsCall) IfNoneMatch(entityTag string) *OrderreportsListdisbursementsCall
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 (*OrderreportsListdisbursementsCall) MaxResults ¶
func (c *OrderreportsListdisbursementsCall) MaxResults(maxResults int64) *OrderreportsListdisbursementsCall
MaxResults sets the optional parameter "maxResults": The maximum number of disbursements to return in the response, used for paging.
func (*OrderreportsListdisbursementsCall) PageToken ¶
func (c *OrderreportsListdisbursementsCall) PageToken(pageToken string) *OrderreportsListdisbursementsCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
func (*OrderreportsListdisbursementsCall) Pages ¶
func (c *OrderreportsListdisbursementsCall) Pages(ctx context.Context, f func(*OrderreportsListDisbursementsResponse) 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 OrderreportsListtransactionsCall ¶
type OrderreportsListtransactionsCall struct {
// contains filtered or unexported fields
}
func (*OrderreportsListtransactionsCall) Context ¶
func (c *OrderreportsListtransactionsCall) Context(ctx context.Context) *OrderreportsListtransactionsCall
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 (*OrderreportsListtransactionsCall) Do ¶
func (c *OrderreportsListtransactionsCall) Do(opts ...googleapi.CallOption) (*OrderreportsListTransactionsResponse, error)
Do executes the "content.orderreports.listtransactions" call. Exactly one of *OrderreportsListTransactionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrderreportsListTransactionsResponse.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 (*OrderreportsListtransactionsCall) Fields ¶
func (c *OrderreportsListtransactionsCall) Fields(s ...googleapi.Field) *OrderreportsListtransactionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrderreportsListtransactionsCall) Header ¶
func (c *OrderreportsListtransactionsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrderreportsListtransactionsCall) IfNoneMatch ¶
func (c *OrderreportsListtransactionsCall) IfNoneMatch(entityTag string) *OrderreportsListtransactionsCall
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 (*OrderreportsListtransactionsCall) MaxResults ¶
func (c *OrderreportsListtransactionsCall) MaxResults(maxResults int64) *OrderreportsListtransactionsCall
MaxResults sets the optional parameter "maxResults": The maximum number of disbursements to return in the response, used for paging.
func (*OrderreportsListtransactionsCall) PageToken ¶
func (c *OrderreportsListtransactionsCall) PageToken(pageToken string) *OrderreportsListtransactionsCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
func (*OrderreportsListtransactionsCall) Pages ¶
func (c *OrderreportsListtransactionsCall) Pages(ctx context.Context, f func(*OrderreportsListTransactionsResponse) 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 (*OrderreportsListtransactionsCall) TransactionEndDate ¶
func (c *OrderreportsListtransactionsCall) TransactionEndDate(transactionEndDate string) *OrderreportsListtransactionsCall
TransactionEndDate sets the optional parameter "transactionEndDate": The last date in which transaction occurred. In ISO 8601 format. Default: current date.
func (*OrderreportsListtransactionsCall) TransactionStartDate ¶ added in v0.34.0
func (c *OrderreportsListtransactionsCall) TransactionStartDate(transactionStartDate string) *OrderreportsListtransactionsCall
TransactionStartDate sets the optional parameter "transactionStartDate": The first date in which transaction occurred. In ISO 8601 format.
type OrderreportsService ¶
type OrderreportsService struct {
// contains filtered or unexported fields
}
func NewOrderreportsService ¶
func NewOrderreportsService(s *APIService) *OrderreportsService
func (*OrderreportsService) Listdisbursements ¶
func (r *OrderreportsService) Listdisbursements(merchantId uint64) *OrderreportsListdisbursementsCall
Listdisbursements: Retrieves a report for disbursements from your Merchant Center account.
func (*OrderreportsService) Listtransactions ¶
func (r *OrderreportsService) Listtransactions(merchantId uint64, disbursementId string) *OrderreportsListtransactionsCall
Listtransactions: Retrieves a list of transactions for a disbursement from your Merchant Center account.
type OrderreturnsAcknowledgeCall ¶ added in v0.23.0
type OrderreturnsAcknowledgeCall struct {
// contains filtered or unexported fields
}
func (*OrderreturnsAcknowledgeCall) Context ¶ added in v0.23.0
func (c *OrderreturnsAcknowledgeCall) Context(ctx context.Context) *OrderreturnsAcknowledgeCall
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 (*OrderreturnsAcknowledgeCall) Do ¶ added in v0.23.0
func (c *OrderreturnsAcknowledgeCall) Do(opts ...googleapi.CallOption) (*OrderreturnsAcknowledgeResponse, error)
Do executes the "content.orderreturns.acknowledge" call. Exactly one of *OrderreturnsAcknowledgeResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrderreturnsAcknowledgeResponse.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 (*OrderreturnsAcknowledgeCall) Fields ¶ added in v0.23.0
func (c *OrderreturnsAcknowledgeCall) Fields(s ...googleapi.Field) *OrderreturnsAcknowledgeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrderreturnsAcknowledgeCall) Header ¶ added in v0.23.0
func (c *OrderreturnsAcknowledgeCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrderreturnsAcknowledgeRequest ¶ added in v0.23.0
type OrderreturnsAcknowledgeRequest struct { // OperationId: [required] The ID of the operation, unique across all // operations for a given order return. 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 (*OrderreturnsAcknowledgeRequest) MarshalJSON ¶ added in v0.23.0
func (s *OrderreturnsAcknowledgeRequest) MarshalJSON() ([]byte, error)
type OrderreturnsAcknowledgeResponse ¶ added in v0.23.0
type OrderreturnsAcknowledgeResponse struct { // ExecutionStatus: The status of the execution. Acceptable values are: // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#orderreturnsAcknowledgeResponse". 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 (*OrderreturnsAcknowledgeResponse) MarshalJSON ¶ added in v0.23.0
func (s *OrderreturnsAcknowledgeResponse) MarshalJSON() ([]byte, error)
type OrderreturnsCreateOrderReturnRequest ¶ added in v0.33.0
type OrderreturnsCreateOrderReturnRequest struct { // LineItems: The list of line items to return. LineItems []*OrderreturnsLineItem `json:"lineItems,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // OrderId: The ID of the order. OrderId string `json:"orderId,omitempty"` // ReturnMethodType: The way of the package being returned. ReturnMethodType string `json:"returnMethodType,omitempty"` // ForceSendFields is a list of field names (e.g. "LineItems") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LineItems") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrderreturnsCreateOrderReturnRequest) MarshalJSON ¶ added in v0.33.0
func (s *OrderreturnsCreateOrderReturnRequest) MarshalJSON() ([]byte, error)
type OrderreturnsCreateOrderReturnResponse ¶ added in v0.33.0
type OrderreturnsCreateOrderReturnResponse struct { // ExecutionStatus: The status of the execution. Acceptable values are: // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#orderreturnsCreateOrderReturnResponse". Kind string `json:"kind,omitempty"` // OrderReturn: Created order return. OrderReturn *MerchantOrderReturn `json:"orderReturn,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 (*OrderreturnsCreateOrderReturnResponse) MarshalJSON ¶ added in v0.33.0
func (s *OrderreturnsCreateOrderReturnResponse) MarshalJSON() ([]byte, error)
type OrderreturnsCreateorderreturnCall ¶ added in v0.33.0
type OrderreturnsCreateorderreturnCall struct {
// contains filtered or unexported fields
}
func (*OrderreturnsCreateorderreturnCall) Context ¶ added in v0.33.0
func (c *OrderreturnsCreateorderreturnCall) Context(ctx context.Context) *OrderreturnsCreateorderreturnCall
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 (*OrderreturnsCreateorderreturnCall) Do ¶ added in v0.33.0
func (c *OrderreturnsCreateorderreturnCall) Do(opts ...googleapi.CallOption) (*OrderreturnsCreateOrderReturnResponse, error)
Do executes the "content.orderreturns.createorderreturn" call. Exactly one of *OrderreturnsCreateOrderReturnResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrderreturnsCreateOrderReturnResponse.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 (*OrderreturnsCreateorderreturnCall) Fields ¶ added in v0.33.0
func (c *OrderreturnsCreateorderreturnCall) Fields(s ...googleapi.Field) *OrderreturnsCreateorderreturnCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrderreturnsCreateorderreturnCall) Header ¶ added in v0.33.0
func (c *OrderreturnsCreateorderreturnCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrderreturnsGetCall ¶
type OrderreturnsGetCall struct {
// contains filtered or unexported fields
}
func (*OrderreturnsGetCall) Context ¶
func (c *OrderreturnsGetCall) Context(ctx context.Context) *OrderreturnsGetCall
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 (*OrderreturnsGetCall) Do ¶
func (c *OrderreturnsGetCall) Do(opts ...googleapi.CallOption) (*MerchantOrderReturn, error)
Do executes the "content.orderreturns.get" call. Exactly one of *MerchantOrderReturn or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *MerchantOrderReturn.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 (*OrderreturnsGetCall) Fields ¶
func (c *OrderreturnsGetCall) Fields(s ...googleapi.Field) *OrderreturnsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrderreturnsGetCall) Header ¶
func (c *OrderreturnsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrderreturnsGetCall) IfNoneMatch ¶
func (c *OrderreturnsGetCall) IfNoneMatch(entityTag string) *OrderreturnsGetCall
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 OrderreturnsLineItem ¶ added in v0.33.0
type OrderreturnsLineItem struct { // LineItemId: The ID of the line item. This value is assigned by Google // when an order is created. LineItemId string `json:"lineItemId,omitempty"` // Quantity: The quantity of this line item. 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 (*OrderreturnsLineItem) MarshalJSON ¶ added in v0.33.0
func (s *OrderreturnsLineItem) MarshalJSON() ([]byte, error)
type OrderreturnsListCall ¶
type OrderreturnsListCall struct {
// contains filtered or unexported fields
}
func (*OrderreturnsListCall) Acknowledged ¶ added in v0.23.0
func (c *OrderreturnsListCall) Acknowledged(acknowledged bool) *OrderreturnsListCall
Acknowledged sets the optional parameter "acknowledged": Obtains order returns that match the acknowledgement status. When set to true, obtains order returns that have been acknowledged. When false, obtains order returns that have not been acknowledged. When not provided, obtains order returns regardless of their acknowledgement status. We recommend using this filter set to `false`, in conjunction with the `acknowledge` call, such that only un-acknowledged order returns are returned.
func (*OrderreturnsListCall) Context ¶
func (c *OrderreturnsListCall) Context(ctx context.Context) *OrderreturnsListCall
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 (*OrderreturnsListCall) CreatedEndDate ¶
func (c *OrderreturnsListCall) CreatedEndDate(createdEndDate string) *OrderreturnsListCall
CreatedEndDate sets the optional parameter "createdEndDate": Obtains order returns created before this date (inclusively), in ISO 8601 format.
func (*OrderreturnsListCall) CreatedStartDate ¶
func (c *OrderreturnsListCall) CreatedStartDate(createdStartDate string) *OrderreturnsListCall
CreatedStartDate sets the optional parameter "createdStartDate": Obtains order returns created after this date (inclusively), in ISO 8601 format.
func (*OrderreturnsListCall) Do ¶
func (c *OrderreturnsListCall) Do(opts ...googleapi.CallOption) (*OrderreturnsListResponse, error)
Do executes the "content.orderreturns.list" call. Exactly one of *OrderreturnsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrderreturnsListResponse.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 (*OrderreturnsListCall) Fields ¶
func (c *OrderreturnsListCall) Fields(s ...googleapi.Field) *OrderreturnsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrderreturnsListCall) GoogleOrderIds ¶ added in v0.23.0
func (c *OrderreturnsListCall) GoogleOrderIds(googleOrderIds ...string) *OrderreturnsListCall
GoogleOrderIds sets the optional parameter "googleOrderIds": Obtains order returns with the specified order ids. If this parameter is provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus, shipmentState and acknowledged parameters must be not set. Note: if googleOrderId and shipmentTrackingNumber parameters are provided, the obtained results will include all order returns that either match the specified order id or the specified tracking number.
func (*OrderreturnsListCall) Header ¶
func (c *OrderreturnsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrderreturnsListCall) IfNoneMatch ¶
func (c *OrderreturnsListCall) IfNoneMatch(entityTag string) *OrderreturnsListCall
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 (*OrderreturnsListCall) MaxResults ¶
func (c *OrderreturnsListCall) MaxResults(maxResults int64) *OrderreturnsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of order returns to return in the response, used for paging. The default value is 25 returns per page, and the maximum allowed value is 250 returns per page.
func (*OrderreturnsListCall) OrderBy ¶
func (c *OrderreturnsListCall) OrderBy(orderBy string) *OrderreturnsListCall
OrderBy sets the optional parameter "orderBy": Return the results in the specified order.
Possible values:
"RETURN_CREATION_TIME_DESC" "RETURN_CREATION_TIME_ASC"
func (*OrderreturnsListCall) PageToken ¶
func (c *OrderreturnsListCall) PageToken(pageToken string) *OrderreturnsListCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
func (*OrderreturnsListCall) Pages ¶
func (c *OrderreturnsListCall) Pages(ctx context.Context, f func(*OrderreturnsListResponse) 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 (*OrderreturnsListCall) ShipmentStates ¶ added in v0.23.0
func (c *OrderreturnsListCall) ShipmentStates(shipmentStates ...string) *OrderreturnsListCall
ShipmentStates sets the optional parameter "shipmentStates": Obtains order returns that match any shipment state provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment states.
Possible values:
"NEW" "SHIPPED" "COMPLETED" "UNDELIVERABLE" "PENDING"
func (*OrderreturnsListCall) ShipmentStatus ¶ added in v0.23.0
func (c *OrderreturnsListCall) ShipmentStatus(shipmentStatus ...string) *OrderreturnsListCall
ShipmentStatus sets the optional parameter "shipmentStatus": Obtains order returns that match any shipment status provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment statuses.
Possible values:
"NEW" "IN_PROGRESS" "PROCESSED"
func (*OrderreturnsListCall) ShipmentTrackingNumbers ¶ added in v0.23.0
func (c *OrderreturnsListCall) ShipmentTrackingNumbers(shipmentTrackingNumbers ...string) *OrderreturnsListCall
ShipmentTrackingNumbers sets the optional parameter "shipmentTrackingNumbers": Obtains order returns with the specified tracking numbers. If this parameter is provided, createdStartDate, createdEndDate, shipmentType, shipmentStatus, shipmentState and acknowledged parameters must be not set. Note: if googleOrderId and shipmentTrackingNumber parameters are provided, the obtained results will include all order returns that either match the specified order id or the specified tracking number.
func (*OrderreturnsListCall) ShipmentTypes ¶ added in v0.23.0
func (c *OrderreturnsListCall) ShipmentTypes(shipmentTypes ...string) *OrderreturnsListCall
ShipmentTypes sets the optional parameter "shipmentTypes": Obtains order returns that match any shipment type provided in this parameter. When this parameter is not provided, order returns are obtained regardless of their shipment types.
Possible values:
"BY_MAIL" "RETURNLESS" "CONTACT_CUSTOMER_SUPPORT"
type OrderreturnsListResponse ¶
type OrderreturnsListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#orderreturnsListResponse". Kind string `json:"kind,omitempty"` // NextPageToken: The token for the retrieval of the next page of // returns. NextPageToken string `json:"nextPageToken,omitempty"` Resources []*MerchantOrderReturn `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 (*OrderreturnsListResponse) MarshalJSON ¶
func (s *OrderreturnsListResponse) MarshalJSON() ([]byte, error)
type OrderreturnsPartialRefund ¶ added in v0.23.0
type OrderreturnsPartialRefund struct { // PriceAmount: The pre-tax or post-tax amount to be refunded, depending // on the location of the order. PriceAmount *Price `json:"priceAmount,omitempty"` // TaxAmount: Tax amount to be refunded. Note: This has different // meaning depending on the location of the order. TaxAmount *Price `json:"taxAmount,omitempty"` // ForceSendFields is a list of field names (e.g. "PriceAmount") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PriceAmount") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrderreturnsPartialRefund) MarshalJSON ¶ added in v0.23.0
func (s *OrderreturnsPartialRefund) MarshalJSON() ([]byte, error)
type OrderreturnsProcessCall ¶ added in v0.23.0
type OrderreturnsProcessCall struct {
// contains filtered or unexported fields
}
func (*OrderreturnsProcessCall) Context ¶ added in v0.23.0
func (c *OrderreturnsProcessCall) Context(ctx context.Context) *OrderreturnsProcessCall
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 (*OrderreturnsProcessCall) Do ¶ added in v0.23.0
func (c *OrderreturnsProcessCall) Do(opts ...googleapi.CallOption) (*OrderreturnsProcessResponse, error)
Do executes the "content.orderreturns.process" call. Exactly one of *OrderreturnsProcessResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrderreturnsProcessResponse.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 (*OrderreturnsProcessCall) Fields ¶ added in v0.23.0
func (c *OrderreturnsProcessCall) Fields(s ...googleapi.Field) *OrderreturnsProcessCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrderreturnsProcessCall) Header ¶ added in v0.23.0
func (c *OrderreturnsProcessCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrderreturnsProcessRequest ¶ added in v0.23.0
type OrderreturnsProcessRequest struct { // FullChargeReturnShippingCost: Option to charge the customer return // shipping cost. FullChargeReturnShippingCost bool `json:"fullChargeReturnShippingCost,omitempty"` // OperationId: [required] The ID of the operation, unique across all // operations for a given order return. OperationId string `json:"operationId,omitempty"` // RefundShippingFee: Refunds for original shipping fee. RefundShippingFee *OrderreturnsRefundOperation `json:"refundShippingFee,omitempty"` // ReturnItems: The list of items to return. ReturnItems []*OrderreturnsReturnItem `json:"returnItems,omitempty"` // ForceSendFields is a list of field names (e.g. // "FullChargeReturnShippingCost") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "FullChargeReturnShippingCost") to include in API requests with the // JSON null value. By default, fields with empty values are omitted // from API requests. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrderreturnsProcessRequest) MarshalJSON ¶ added in v0.23.0
func (s *OrderreturnsProcessRequest) MarshalJSON() ([]byte, error)
type OrderreturnsProcessResponse ¶ added in v0.23.0
type OrderreturnsProcessResponse struct { // ExecutionStatus: The status of the execution. Acceptable values are: // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#orderreturnsProcessResponse". 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 (*OrderreturnsProcessResponse) MarshalJSON ¶ added in v0.23.0
func (s *OrderreturnsProcessResponse) MarshalJSON() ([]byte, error)
type OrderreturnsRefundOperation ¶ added in v0.23.0
type OrderreturnsRefundOperation struct { // FullRefund: If true, the item will be fully refunded. Allowed only // when payment_type is FOP. Merchant can choose this refund option to // indicate the full remaining amount of corresponding object to be // refunded to the customer via FOP. FullRefund bool `json:"fullRefund,omitempty"` // PartialRefund: If this is set, the item will be partially refunded. // Merchant can choose this refund option to specify the customized // amount that to be refunded to the customer. PartialRefund *OrderreturnsPartialRefund `json:"partialRefund,omitempty"` // PaymentType: The payment way of issuing refund. Default value is // ORIGINAL_FOP if not set. PaymentType string `json:"paymentType,omitempty"` // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` // ReturnRefundReason: Code of the refund reason. ReturnRefundReason string `json:"returnRefundReason,omitempty"` // ForceSendFields is a list of field names (e.g. "FullRefund") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FullRefund") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrderreturnsRefundOperation) MarshalJSON ¶ added in v0.23.0
func (s *OrderreturnsRefundOperation) MarshalJSON() ([]byte, error)
type OrderreturnsRejectOperation ¶ added in v0.23.0
type OrderreturnsRejectOperation struct { // 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. "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 (*OrderreturnsRejectOperation) MarshalJSON ¶ added in v0.23.0
func (s *OrderreturnsRejectOperation) MarshalJSON() ([]byte, error)
type OrderreturnsReturnItem ¶ added in v0.23.0
type OrderreturnsReturnItem struct { // Refund: Refunds the item. Refund *OrderreturnsRefundOperation `json:"refund,omitempty"` // Reject: Rejects the item. Reject *OrderreturnsRejectOperation `json:"reject,omitempty"` // ReturnItemId: Unit level ID for the return item. Different units of // the same product will have different IDs. ReturnItemId string `json:"returnItemId,omitempty"` // ForceSendFields is a list of field names (e.g. "Refund") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Refund") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrderreturnsReturnItem) MarshalJSON ¶ added in v0.23.0
func (s *OrderreturnsReturnItem) MarshalJSON() ([]byte, error)
type OrderreturnsService ¶
type OrderreturnsService struct {
// contains filtered or unexported fields
}
func NewOrderreturnsService ¶
func NewOrderreturnsService(s *APIService) *OrderreturnsService
func (*OrderreturnsService) Acknowledge ¶ added in v0.23.0
func (r *OrderreturnsService) Acknowledge(merchantId uint64, returnId string, orderreturnsacknowledgerequest *OrderreturnsAcknowledgeRequest) *OrderreturnsAcknowledgeCall
Acknowledge: Acks an order return in your Merchant Center account.
func (*OrderreturnsService) Createorderreturn ¶ added in v0.33.0
func (r *OrderreturnsService) Createorderreturn(merchantId uint64, orderreturnscreateorderreturnrequest *OrderreturnsCreateOrderReturnRequest) *OrderreturnsCreateorderreturnCall
Createorderreturn: Create return in your Merchant Center account.
func (*OrderreturnsService) Get ¶
func (r *OrderreturnsService) Get(merchantId uint64, returnId string) *OrderreturnsGetCall
Get: Retrieves an order return from your Merchant Center account.
func (*OrderreturnsService) List ¶
func (r *OrderreturnsService) List(merchantId uint64) *OrderreturnsListCall
List: Lists order returns in your Merchant Center account.
func (*OrderreturnsService) Process ¶ added in v0.23.0
func (r *OrderreturnsService) Process(merchantId uint64, returnId string, orderreturnsprocessrequest *OrderreturnsProcessRequest) *OrderreturnsProcessCall
Process: Processes return in your Merchant Center account.
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. Acceptable values are: // - "duplicate" - "executed" 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 { // LineItemId: The ID of the line item to cancel. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // ProductId: The ID of the product to cancel. This is the REST ID used // in the products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` // Quantity: The quantity to cancel. Quantity int64 `json:"quantity,omitempty"` // Reason: The reason for the cancellation. Acceptable values are: - // "customerInitiatedCancel" - "invalidCoupon" - // "malformedShippingAddress" - "noInventory" - "other" - // "priceError" - "shippingPriceError" - "taxError" - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" 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 (*OrdersCancelLineItemRequest) MarshalJSON ¶
func (s *OrdersCancelLineItemRequest) MarshalJSON() ([]byte, error)
type OrdersCancelLineItemResponse ¶
type OrdersCancelLineItemResponse struct { // ExecutionStatus: The status of the execution. Acceptable values are: // - "duplicate" - "executed" 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. Acceptable values are: - // "customerInitiatedCancel" - "invalidCoupon" - // "malformedShippingAddress" - "noInventory" - "other" - // "priceError" - "shippingPriceError" - "taxError" - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" 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. Acceptable values are: // - "duplicate" - "executed" 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 OrdersCancelTestOrderByCustomerRequest ¶
type OrdersCancelTestOrderByCustomerRequest struct { // Reason: The reason for the cancellation. Acceptable values are: - // "changedMind" - "orderedWrongItem" - "other" Reason string `json:"reason,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 (*OrdersCancelTestOrderByCustomerRequest) MarshalJSON ¶
func (s *OrdersCancelTestOrderByCustomerRequest) MarshalJSON() ([]byte, error)
type OrdersCancelTestOrderByCustomerResponse ¶
type OrdersCancelTestOrderByCustomerResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersCancelTestOrderByCustomerResponse". 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 (*OrdersCancelTestOrderByCustomerResponse) MarshalJSON ¶
func (s *OrdersCancelTestOrderByCustomerResponse) 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 OrdersCanceltestorderbycustomerCall ¶
type OrdersCanceltestorderbycustomerCall struct {
// contains filtered or unexported fields
}
func (*OrdersCanceltestorderbycustomerCall) Context ¶
func (c *OrdersCanceltestorderbycustomerCall) Context(ctx context.Context) *OrdersCanceltestorderbycustomerCall
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 (*OrdersCanceltestorderbycustomerCall) Do ¶
func (c *OrdersCanceltestorderbycustomerCall) Do(opts ...googleapi.CallOption) (*OrdersCancelTestOrderByCustomerResponse, error)
Do executes the "content.orders.canceltestorderbycustomer" call. Exactly one of *OrdersCancelTestOrderByCustomerResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersCancelTestOrderByCustomerResponse.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 (*OrdersCanceltestorderbycustomerCall) Fields ¶
func (c *OrdersCanceltestorderbycustomerCall) Fields(s ...googleapi.Field) *OrdersCanceltestorderbycustomerCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersCanceltestorderbycustomerCall) Header ¶
func (c *OrdersCanceltestorderbycustomerCall) 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 { // Country: The CLDR territory code of the country of the test order to // create. Affects the currency and addresses of orders created via // `template_name`, or the addresses of orders created via `test_order`. // Acceptable values are: - "US" - "FR" Defaults to `US`. Country string `json:"country,omitempty"` // 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. Acceptable values // are: - "template1" - "template1a" - "template1b" - // "template2" - "template3" 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. "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 (*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 OrdersCreateTestReturnRequest ¶
type OrdersCreateTestReturnRequest struct { // Items: Returned items. Items []*OrdersCustomBatchRequestEntryCreateTestReturnReturnItem `json:"items,omitempty"` // ForceSendFields is a list of field names (e.g. "Items") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Items") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrdersCreateTestReturnRequest) MarshalJSON ¶
func (s *OrdersCreateTestReturnRequest) MarshalJSON() ([]byte, error)
type OrdersCreateTestReturnResponse ¶
type OrdersCreateTestReturnResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersCreateTestReturnResponse". Kind string `json:"kind,omitempty"` // ReturnId: The ID of the newly created test order return. ReturnId string `json:"returnId,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 (*OrdersCreateTestReturnResponse) MarshalJSON ¶
func (s *OrdersCreateTestReturnResponse) 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 OrdersCreatetestreturnCall ¶
type OrdersCreatetestreturnCall struct {
// contains filtered or unexported fields
}
func (*OrdersCreatetestreturnCall) Context ¶
func (c *OrdersCreatetestreturnCall) Context(ctx context.Context) *OrdersCreatetestreturnCall
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 (*OrdersCreatetestreturnCall) Do ¶
func (c *OrdersCreatetestreturnCall) Do(opts ...googleapi.CallOption) (*OrdersCreateTestReturnResponse, error)
Do executes the "content.orders.createtestreturn" call. Exactly one of *OrdersCreateTestReturnResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersCreateTestReturnResponse.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 (*OrdersCreatetestreturnCall) Fields ¶
func (c *OrdersCreatetestreturnCall) Fields(s ...googleapi.Field) *OrdersCreatetestreturnCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersCreatetestreturnCall) Header ¶
func (c *OrdersCreatetestreturnCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrdersCustomBatchRequestEntryCreateTestReturnReturnItem ¶
type OrdersCustomBatchRequestEntryCreateTestReturnReturnItem struct { // LineItemId: The ID of the line item to return. LineItemId string `json:"lineItemId,omitempty"` // Quantity: Quantity that is returned. 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 (*OrdersCustomBatchRequestEntryCreateTestReturnReturnItem) MarshalJSON ¶
func (s *OrdersCustomBatchRequestEntryCreateTestReturnReturnItem) MarshalJSON() ([]byte, error)
type OrdersCustomBatchRequestEntryRefundItemItem ¶ added in v0.27.0
type OrdersCustomBatchRequestEntryRefundItemItem struct { // Amount: The total amount that is refunded. (e.g. refunding $5 each // for 2 products should be done by setting quantity to 2 and amount to // 10$) In case of multiple refunds, this should be the amount you // currently want to refund to the customer. Amount *MonetaryAmount `json:"amount,omitempty"` // FullRefund: If true, the full item will be refunded. If this is true, // amount should not be provided and will be ignored. FullRefund bool `json:"fullRefund,omitempty"` // LineItemId: The ID of the line item. Either lineItemId or productId // is required. LineItemId string `json:"lineItemId,omitempty"` // ProductId: The ID of the product. This is the REST ID used in the // products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` // Quantity: The number of products that are refunded. Quantity int64 `json:"quantity,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 (*OrdersCustomBatchRequestEntryRefundItemItem) MarshalJSON ¶ added in v0.27.0
func (s *OrdersCustomBatchRequestEntryRefundItemItem) MarshalJSON() ([]byte, error)
type OrdersCustomBatchRequestEntryRefundItemShipping ¶ added in v0.27.0
type OrdersCustomBatchRequestEntryRefundItemShipping struct { // Amount: The amount that is refunded. If this is not the first refund // for the shipment, this should be the newly refunded amount. Amount *Price `json:"amount,omitempty"` // FullRefund: If set to true, all shipping costs for the order will be // refunded. If this is true, amount should not be provided and will be // ignored. If set to false, submit the amount of the partial shipping // refund, excluding the shipping tax. The shipping tax is calculated // and handled on Google's side. FullRefund bool `json:"fullRefund,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 (*OrdersCustomBatchRequestEntryRefundItemShipping) MarshalJSON ¶ added in v0.27.0
func (s *OrdersCustomBatchRequestEntryRefundItemShipping) MarshalJSON() ([]byte, error)
type OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo ¶
type OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo struct { // Carrier: The carrier handling the shipment. See `shipments[].carrier` // in the Orders resource representation for a list of acceptable // values. Carrier string `json:"carrier,omitempty"` // ShipmentId: Required. The ID of the shipment. This is assigned by the // merchant and is unique to each 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 (*OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo) MarshalJSON ¶
func (s *OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo) MarshalJSON() ([]byte, error)
type OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails ¶ added in v0.37.0
type OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails struct { // CarrierPhoneNumber: The phone number of the carrier fulfilling the // delivery. The phone number should be formatted as the international // notation in CarrierPhoneNumber string `json:"carrierPhoneNumber,omitempty"` // ScheduledDate: The date a shipment is scheduled for delivery, in ISO // 8601 format. ScheduledDate string `json:"scheduledDate,omitempty"` // ForceSendFields is a list of field names (e.g. "CarrierPhoneNumber") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CarrierPhoneNumber") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails: ScheduledDeliveryDetails used to update the scheduled delivery order.
func (*OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails) MarshalJSON ¶ added in v0.37.0
func (s *OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails) MarshalJSON() ([]byte, error)
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) Country ¶
func (c *OrdersGettestordertemplateCall) Country(country string) *OrdersGettestordertemplateCall
Country sets the optional parameter "country": The country of the template to retrieve. Defaults to `US`.
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 OrdersInStoreRefundLineItemRequest ¶
type OrdersInStoreRefundLineItemRequest struct { // LineItemId: The ID of the line item to return. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // PriceAmount: The amount to be refunded. This may be pre-tax or // post-tax depending on the location of the order. Required. PriceAmount *Price `json:"priceAmount,omitempty"` // ProductId: The ID of the product to return. This is the REST ID used // in the products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` // Quantity: The quantity to return and refund. Quantity int64 `json:"quantity,omitempty"` // Reason: The reason for the return. Acceptable values are: - // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" // - "deliveredTooLate" - "expiredItem" - "invalidCoupon" - // "malformedShippingAddress" - "other" - "productArrivedDamaged" // - "productNotAsDescribed" - "qualityNotAsExpected" - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - // "wrongProductShipped" Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` // TaxAmount: The amount of tax to be refunded. Required. TaxAmount *Price `json:"taxAmount,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 (*OrdersInStoreRefundLineItemRequest) MarshalJSON ¶
func (s *OrdersInStoreRefundLineItemRequest) MarshalJSON() ([]byte, error)
type OrdersInStoreRefundLineItemResponse ¶
type OrdersInStoreRefundLineItemResponse struct { // ExecutionStatus: The status of the execution. Acceptable values are: // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersInStoreRefundLineItemResponse". 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 (*OrdersInStoreRefundLineItemResponse) MarshalJSON ¶
func (s *OrdersInStoreRefundLineItemResponse) MarshalJSON() ([]byte, error)
type OrdersInstorerefundlineitemCall ¶
type OrdersInstorerefundlineitemCall struct {
// contains filtered or unexported fields
}
func (*OrdersInstorerefundlineitemCall) Context ¶
func (c *OrdersInstorerefundlineitemCall) Context(ctx context.Context) *OrdersInstorerefundlineitemCall
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 (*OrdersInstorerefundlineitemCall) Do ¶
func (c *OrdersInstorerefundlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersInStoreRefundLineItemResponse, error)
Do executes the "content.orders.instorerefundlineitem" call. Exactly one of *OrdersInStoreRefundLineItemResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersInStoreRefundLineItemResponse.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 (*OrdersInstorerefundlineitemCall) Fields ¶
func (c *OrdersInstorerefundlineitemCall) Fields(s ...googleapi.Field) *OrdersInstorerefundlineitemCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersInstorerefundlineitemCall) Header ¶
func (c *OrdersInstorerefundlineitemCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
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.
func (*OrdersListCall) OrderBy ¶
func (c *OrdersListCall) OrderBy(orderBy string) *OrdersListCall
OrderBy sets the optional parameter "orderBy": Order results by placement date in descending or ascending order. Acceptable values are: - placedDateAsc - placedDateDesc
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. 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" "COMPLETED" "CANCELED" "IN_PROGRESS" "PENDING_SHIPMENT" "PARTIALLY_SHIPPED" "SHIPPED" "PARTIALLY_DELIVERED" "DELIVERED" "PARTIALLY_RETURNED" "RETURNED"
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 OrdersRefundItemRequest ¶ added in v0.27.0
type OrdersRefundItemRequest struct { // Items: The items that are refunded. Either Item or Shipping must be // provided in the request. Items []*OrdersCustomBatchRequestEntryRefundItemItem `json:"items,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. Acceptable values are: - // "shippingCostAdjustment" - "priceAdjustment" - "taxAdjustment" // - "feeAdjustment" - "courtesyAdjustment" - "adjustment" - // "customerCancelled" - "noInventory" - "productNotAsDescribed" - // "undeliverableShippingAddress" - "wrongProductShipped" - // "lateShipmentCredit" - "deliveredLateByCarrier" - // "productArrivedDamaged" Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` // Shipping: The refund on shipping. Optional, but either Item or // Shipping must be provided in the request. Shipping *OrdersCustomBatchRequestEntryRefundItemShipping `json:"shipping,omitempty"` // ForceSendFields is a list of field names (e.g. "Items") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Items") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrdersRefundItemRequest) MarshalJSON ¶ added in v0.27.0
func (s *OrdersRefundItemRequest) MarshalJSON() ([]byte, error)
type OrdersRefundItemResponse ¶ added in v0.27.0
type OrdersRefundItemResponse struct { // ExecutionStatus: The status of the execution. Acceptable values are: // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersRefundItemResponse". 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 (*OrdersRefundItemResponse) MarshalJSON ¶ added in v0.27.0
func (s *OrdersRefundItemResponse) MarshalJSON() ([]byte, error)
type OrdersRefundOrderRequest ¶ added in v0.27.0
type OrdersRefundOrderRequest struct { // Amount: The amount that is refunded. If this is not the first refund // for the order, this should be the newly refunded amount. Amount *MonetaryAmount `json:"amount,omitempty"` // FullRefund: If true, the full order will be refunded, including // shipping. If this is true, amount should not be provided and will be // ignored. FullRefund bool `json:"fullRefund,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. Acceptable values are: - // "courtesyAdjustment" - "other" 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 (*OrdersRefundOrderRequest) MarshalJSON ¶ added in v0.27.0
func (s *OrdersRefundOrderRequest) MarshalJSON() ([]byte, error)
type OrdersRefundOrderResponse ¶ added in v0.27.0
type OrdersRefundOrderResponse struct { // ExecutionStatus: The status of the execution. Acceptable values are: // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersRefundOrderResponse". 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 (*OrdersRefundOrderResponse) MarshalJSON ¶ added in v0.27.0
func (s *OrdersRefundOrderResponse) MarshalJSON() ([]byte, error)
type OrdersRefunditemCall ¶ added in v0.27.0
type OrdersRefunditemCall struct {
// contains filtered or unexported fields
}
func (*OrdersRefunditemCall) Context ¶ added in v0.27.0
func (c *OrdersRefunditemCall) Context(ctx context.Context) *OrdersRefunditemCall
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 (*OrdersRefunditemCall) Do ¶ added in v0.27.0
func (c *OrdersRefunditemCall) Do(opts ...googleapi.CallOption) (*OrdersRefundItemResponse, error)
Do executes the "content.orders.refunditem" call. Exactly one of *OrdersRefundItemResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersRefundItemResponse.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 (*OrdersRefunditemCall) Fields ¶ added in v0.27.0
func (c *OrdersRefunditemCall) Fields(s ...googleapi.Field) *OrdersRefunditemCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersRefunditemCall) Header ¶ added in v0.27.0
func (c *OrdersRefunditemCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrdersRefundorderCall ¶ added in v0.27.0
type OrdersRefundorderCall struct {
// contains filtered or unexported fields
}
func (*OrdersRefundorderCall) Context ¶ added in v0.27.0
func (c *OrdersRefundorderCall) Context(ctx context.Context) *OrdersRefundorderCall
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 (*OrdersRefundorderCall) Do ¶ added in v0.27.0
func (c *OrdersRefundorderCall) Do(opts ...googleapi.CallOption) (*OrdersRefundOrderResponse, error)
Do executes the "content.orders.refundorder" call. Exactly one of *OrdersRefundOrderResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersRefundOrderResponse.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 (*OrdersRefundorderCall) Fields ¶ added in v0.27.0
func (c *OrdersRefundorderCall) Fields(s ...googleapi.Field) *OrdersRefundorderCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersRefundorderCall) Header ¶ added in v0.27.0
func (c *OrdersRefundorderCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrdersRejectReturnLineItemRequest ¶
type OrdersRejectReturnLineItemRequest struct { // LineItemId: The ID of the line item to return. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // ProductId: The ID of the product to return. This is the REST ID used // in the products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` // Quantity: The quantity to return and refund. Quantity int64 `json:"quantity,omitempty"` // Reason: The reason for the return. Acceptable values are: - // "damagedOrUsed" - "missingComponent" - "notEligible" - // "other" - "outOfReturnWindow" 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 (*OrdersRejectReturnLineItemRequest) MarshalJSON ¶
func (s *OrdersRejectReturnLineItemRequest) MarshalJSON() ([]byte, error)
type OrdersRejectReturnLineItemResponse ¶
type OrdersRejectReturnLineItemResponse struct { // ExecutionStatus: The status of the execution. Acceptable values are: // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersRejectReturnLineItemResponse". 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 (*OrdersRejectReturnLineItemResponse) MarshalJSON ¶
func (s *OrdersRejectReturnLineItemResponse) MarshalJSON() ([]byte, error)
type OrdersRejectreturnlineitemCall ¶
type OrdersRejectreturnlineitemCall struct {
// contains filtered or unexported fields
}
func (*OrdersRejectreturnlineitemCall) Context ¶
func (c *OrdersRejectreturnlineitemCall) Context(ctx context.Context) *OrdersRejectreturnlineitemCall
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 (*OrdersRejectreturnlineitemCall) Do ¶
func (c *OrdersRejectreturnlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersRejectReturnLineItemResponse, error)
Do executes the "content.orders.rejectreturnlineitem" call. Exactly one of *OrdersRejectReturnLineItemResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersRejectReturnLineItemResponse.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 (*OrdersRejectreturnlineitemCall) Fields ¶
func (c *OrdersRejectreturnlineitemCall) Fields(s ...googleapi.Field) *OrdersRejectreturnlineitemCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersRejectreturnlineitemCall) Header ¶
func (c *OrdersRejectreturnlineitemCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrdersReturnRefundLineItemRequest ¶
type OrdersReturnRefundLineItemRequest struct { // LineItemId: The ID of the line item to return. Either lineItemId or // productId is required. LineItemId string `json:"lineItemId,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // PriceAmount: The amount to be refunded. This may be pre-tax or // post-tax depending on the location of the order. If omitted, // refundless return is assumed. PriceAmount *Price `json:"priceAmount,omitempty"` // ProductId: The ID of the product to return. This is the REST ID used // in the products service. Either lineItemId or productId is required. ProductId string `json:"productId,omitempty"` // Quantity: The quantity to return and refund. Quantity is required. Quantity int64 `json:"quantity,omitempty"` // Reason: The reason for the return. Acceptable values are: - // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" // - "deliveredTooLate" - "expiredItem" - "invalidCoupon" - // "malformedShippingAddress" - "other" - "productArrivedDamaged" // - "productNotAsDescribed" - "qualityNotAsExpected" - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - // "wrongProductShipped" Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` // TaxAmount: The amount of tax to be refunded. Optional, but if filled, // then priceAmount must be set. Calculated automatically if not // provided. TaxAmount *Price `json:"taxAmount,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 (*OrdersReturnRefundLineItemRequest) MarshalJSON ¶
func (s *OrdersReturnRefundLineItemRequest) MarshalJSON() ([]byte, error)
type OrdersReturnRefundLineItemResponse ¶
type OrdersReturnRefundLineItemResponse struct { // ExecutionStatus: The status of the execution. Acceptable values are: // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersReturnRefundLineItemResponse". 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 (*OrdersReturnRefundLineItemResponse) MarshalJSON ¶
func (s *OrdersReturnRefundLineItemResponse) MarshalJSON() ([]byte, error)
type OrdersReturnrefundlineitemCall ¶
type OrdersReturnrefundlineitemCall struct {
// contains filtered or unexported fields
}
func (*OrdersReturnrefundlineitemCall) Context ¶
func (c *OrdersReturnrefundlineitemCall) Context(ctx context.Context) *OrdersReturnrefundlineitemCall
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 (*OrdersReturnrefundlineitemCall) Do ¶
func (c *OrdersReturnrefundlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersReturnRefundLineItemResponse, error)
Do executes the "content.orders.returnrefundlineitem" call. Exactly one of *OrdersReturnRefundLineItemResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersReturnRefundLineItemResponse.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 (*OrdersReturnrefundlineitemCall) Fields ¶
func (c *OrdersReturnrefundlineitemCall) Fields(s ...googleapi.Field) *OrdersReturnrefundlineitemCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersReturnrefundlineitemCall) Header ¶
func (c *OrdersReturnrefundlineitemCall) 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.
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".
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.
func (*OrdersService) Cancellineitem ¶
func (r *OrdersService) Cancellineitem(merchantId uint64, orderId string, orderscancellineitemrequest *OrdersCancelLineItemRequest) *OrdersCancellineitemCall
Cancellineitem: Cancels a line item, making a full refund.
func (*OrdersService) Canceltestorderbycustomer ¶
func (r *OrdersService) Canceltestorderbycustomer(merchantId uint64, orderId string, orderscanceltestorderbycustomerrequest *OrdersCancelTestOrderByCustomerRequest) *OrdersCanceltestorderbycustomerCall
Canceltestorderbycustomer: Sandbox only. Cancels a test order for customer-initiated cancellation.
func (*OrdersService) Createtestorder ¶
func (r *OrdersService) Createtestorder(merchantId uint64, orderscreatetestorderrequest *OrdersCreateTestOrderRequest) *OrdersCreatetestorderCall
Createtestorder: Sandbox only. Creates a test order.
func (*OrdersService) Createtestreturn ¶
func (r *OrdersService) Createtestreturn(merchantId uint64, orderId string, orderscreatetestreturnrequest *OrdersCreateTestReturnRequest) *OrdersCreatetestreturnCall
Createtestreturn: Sandbox only. Creates a test return.
func (*OrdersService) Get ¶
func (r *OrdersService) Get(merchantId uint64, orderId string) *OrdersGetCall
Get: Retrieves an order from your Merchant Center account.
func (*OrdersService) Getbymerchantorderid ¶
func (r *OrdersService) Getbymerchantorderid(merchantId uint64, merchantOrderId string) *OrdersGetbymerchantorderidCall
Getbymerchantorderid: Retrieves an order using merchant order ID.
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.
func (*OrdersService) Instorerefundlineitem ¶
func (r *OrdersService) Instorerefundlineitem(merchantId uint64, orderId string, ordersinstorerefundlineitemrequest *OrdersInStoreRefundLineItemRequest) *OrdersInstorerefundlineitemCall
Instorerefundlineitem: Deprecated. Notifies that item return and refund was handled directly by merchant outside of Google payments processing (e.g. cash refund done in store). Note: We recommend calling the returnrefundlineitem method to refund in-store returns. We will issue the refund directly to the customer. This helps to prevent possible differences arising between merchant and Google transaction records. We also recommend having the point of sale system communicate with Google to ensure that customers do not receive a double refund by first refunding via Google then via an in-store return.
func (*OrdersService) List ¶
func (r *OrdersService) List(merchantId uint64) *OrdersListCall
List: Lists the orders in your Merchant Center account.
func (*OrdersService) Refunditem ¶ added in v0.27.0
func (r *OrdersService) Refunditem(merchantId uint64, orderId string, ordersrefunditemrequest *OrdersRefundItemRequest) *OrdersRefunditemCall
Refunditem: Issues a partial or total refund for items and shipment.
func (*OrdersService) Refundorder ¶ added in v0.27.0
func (r *OrdersService) Refundorder(merchantId uint64, orderId string, ordersrefundorderrequest *OrdersRefundOrderRequest) *OrdersRefundorderCall
Refundorder: Issues a partial or total refund for an order.
func (*OrdersService) Rejectreturnlineitem ¶
func (r *OrdersService) Rejectreturnlineitem(merchantId uint64, orderId string, ordersrejectreturnlineitemrequest *OrdersRejectReturnLineItemRequest) *OrdersRejectreturnlineitemCall
Rejectreturnlineitem: Rejects return on an line item.
func (*OrdersService) Returnrefundlineitem ¶
func (r *OrdersService) Returnrefundlineitem(merchantId uint64, orderId string, ordersreturnrefundlineitemrequest *OrdersReturnRefundLineItemRequest) *OrdersReturnrefundlineitemCall
Returnrefundlineitem: Returns and refunds a line item. Note that this method can only be called on fully shipped orders. Please also note that the Orderreturns API is the preferred way to handle returns after you receive a return from a customer. You can use Orderreturns.list or Orderreturns.get to search for the return, and then use Orderreturns.processreturn to issue the refund. If the return cannot be found, then we recommend using this API to issue a refund.
func (*OrdersService) Setlineitemmetadata ¶
func (r *OrdersService) Setlineitemmetadata(merchantId uint64, orderId string, orderssetlineitemmetadatarequest *OrdersSetLineItemMetadataRequest) *OrdersSetlineitemmetadataCall
Setlineitemmetadata: Sets (or overrides if it already exists) merchant provided annotations in the form of key-value pairs. A common use case would be to supply us with additional structured information about a line item that cannot be provided via other methods. Submitted key-value pairs can be retrieved as part of the orders resource.
func (*OrdersService) Shiplineitems ¶
func (r *OrdersService) Shiplineitems(merchantId uint64, orderId string, ordersshiplineitemsrequest *OrdersShipLineItemsRequest) *OrdersShiplineitemsCall
Shiplineitems: Marks line item(s) as shipped.
func (*OrdersService) Updatelineitemshippingdetails ¶
func (r *OrdersService) Updatelineitemshippingdetails(merchantId uint64, orderId string, ordersupdatelineitemshippingdetailsrequest *OrdersUpdateLineItemShippingDetailsRequest) *OrdersUpdatelineitemshippingdetailsCall
Updatelineitemshippingdetails: Updates ship by and delivery by dates for a line item.
func (*OrdersService) Updatemerchantorderid ¶
func (r *OrdersService) Updatemerchantorderid(merchantId uint64, orderId string, ordersupdatemerchantorderidrequest *OrdersUpdateMerchantOrderIdRequest) *OrdersUpdatemerchantorderidCall
Updatemerchantorderid: Updates the merchant order ID for a given order.
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.
type OrdersSetLineItemMetadataRequest ¶
type OrdersSetLineItemMetadataRequest struct { Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"` // LineItemId: The ID of the line item to set metadata. Either // lineItemId or productId is required. LineItemId string `json:"lineItemId,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // ProductId: The ID of the product to set metadata. This is the REST ID // used in the products service. Either lineItemId or productId is // required. ProductId string `json:"productId,omitempty"` // ForceSendFields is a list of field names (e.g. "Annotations") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Annotations") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*OrdersSetLineItemMetadataRequest) MarshalJSON ¶
func (s *OrdersSetLineItemMetadataRequest) MarshalJSON() ([]byte, error)
type OrdersSetLineItemMetadataResponse ¶
type OrdersSetLineItemMetadataResponse struct { // ExecutionStatus: The status of the execution. Acceptable values are: // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersSetLineItemMetadataResponse". 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 (*OrdersSetLineItemMetadataResponse) MarshalJSON ¶
func (s *OrdersSetLineItemMetadataResponse) MarshalJSON() ([]byte, error)
type OrdersSetlineitemmetadataCall ¶
type OrdersSetlineitemmetadataCall struct {
// contains filtered or unexported fields
}
func (*OrdersSetlineitemmetadataCall) Context ¶
func (c *OrdersSetlineitemmetadataCall) Context(ctx context.Context) *OrdersSetlineitemmetadataCall
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 (*OrdersSetlineitemmetadataCall) Do ¶
func (c *OrdersSetlineitemmetadataCall) Do(opts ...googleapi.CallOption) (*OrdersSetLineItemMetadataResponse, error)
Do executes the "content.orders.setlineitemmetadata" call. Exactly one of *OrdersSetLineItemMetadataResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersSetLineItemMetadataResponse.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 (*OrdersSetlineitemmetadataCall) Fields ¶
func (c *OrdersSetlineitemmetadataCall) Fields(s ...googleapi.Field) *OrdersSetlineitemmetadataCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersSetlineitemmetadataCall) Header ¶
func (c *OrdersSetlineitemmetadataCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrdersShipLineItemsRequest ¶
type OrdersShipLineItemsRequest struct { // 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"` // ShipmentGroupId: ID of the shipment group. Required for orders that // use the orderinvoices service. ShipmentGroupId string `json:"shipmentGroupId,omitempty"` // ShipmentInfos: Shipment information. This field is repeated because a // single line item can be shipped in several packages (and have several // tracking IDs). ShipmentInfos []*OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo `json:"shipmentInfos,omitempty"` // ForceSendFields is a list of field names (e.g. "LineItems") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LineItems") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a 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. Acceptable values are: // - "duplicate" - "executed" 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 OrdersUpdateLineItemShippingDetailsRequest ¶
type OrdersUpdateLineItemShippingDetailsRequest struct { // DeliverByDate: Updated delivery by date, in ISO 8601 format. If not // specified only ship by date is updated. Provided date should be // within 1 year timeframe and can not be a date in the past. DeliverByDate string `json:"deliverByDate,omitempty"` // LineItemId: The ID of the line item to set metadata. Either // lineItemId or productId is required. LineItemId string `json:"lineItemId,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // ProductId: The ID of the product to set metadata. This is the REST ID // used in the products service. Either lineItemId or productId is // required. ProductId string `json:"productId,omitempty"` // ShipByDate: Updated ship by date, in ISO 8601 format. If not // specified only deliver by date is updated. Provided date should be // within 1 year timeframe and can not be a date in the past. 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 (*OrdersUpdateLineItemShippingDetailsRequest) MarshalJSON ¶
func (s *OrdersUpdateLineItemShippingDetailsRequest) MarshalJSON() ([]byte, error)
type OrdersUpdateLineItemShippingDetailsResponse ¶
type OrdersUpdateLineItemShippingDetailsResponse struct { // ExecutionStatus: The status of the execution. Acceptable values are: // - "duplicate" - "executed" ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersUpdateLineItemShippingDetailsResponse". 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 (*OrdersUpdateLineItemShippingDetailsResponse) MarshalJSON ¶
func (s *OrdersUpdateLineItemShippingDetailsResponse) MarshalJSON() ([]byte, error)
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. Acceptable values are: // - "duplicate" - "executed" 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. // See `shipments[].carrier` in the Orders resource representation for a // list of acceptable values. Carrier string `json:"carrier,omitempty"` // DeliveryDate: Date on which the shipment has been delivered, in ISO // 8601 format. Optional and can be provided only if `status` is // `delivered`. DeliveryDate string `json:"deliveryDate,omitempty"` // LastPickupDate: Date after which the pickup will expire, in ISO 8601 // format. Required only when order is buy-online-pickup-in-store(BOPIS) // and `status` is `ready for pickup`. LastPickupDate string `json:"lastPickupDate,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // ReadyPickupDate: Date on which the shipment has been ready for // pickup, in ISO 8601 format. Optional and can be provided only if // `status` is `ready for pickup`. ReadyPickupDate string `json:"readyPickupDate,omitempty"` // ScheduledDeliveryDetails: Delivery details of the shipment if // scheduling is needed. ScheduledDeliveryDetails *OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails `json:"scheduledDeliveryDetails,omitempty"` // ShipmentId: The ID of the shipment. ShipmentId string `json:"shipmentId,omitempty"` // Status: New status for the shipment. Not updated if missing. // Acceptable values are: - "delivered" - "undeliverable" - // "readyForPickup" Status string `json:"status,omitempty"` // TrackingId: The tracking ID for the shipment. Not updated if missing. TrackingId string `json:"trackingId,omitempty"` // UndeliveredDate: Date on which the shipment has been undeliverable, // in ISO 8601 format. Optional and can be provided only if `status` is // `undeliverable`. UndeliveredDate string `json:"undeliveredDate,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. Acceptable values are: // - "duplicate" - "executed" 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 OrdersUpdatelineitemshippingdetailsCall ¶
type OrdersUpdatelineitemshippingdetailsCall struct {
// contains filtered or unexported fields
}
func (*OrdersUpdatelineitemshippingdetailsCall) Context ¶
func (c *OrdersUpdatelineitemshippingdetailsCall) Context(ctx context.Context) *OrdersUpdatelineitemshippingdetailsCall
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 (*OrdersUpdatelineitemshippingdetailsCall) Do ¶
func (c *OrdersUpdatelineitemshippingdetailsCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateLineItemShippingDetailsResponse, error)
Do executes the "content.orders.updatelineitemshippingdetails" call. Exactly one of *OrdersUpdateLineItemShippingDetailsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersUpdateLineItemShippingDetailsResponse.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 (*OrdersUpdatelineitemshippingdetailsCall) Fields ¶
func (c *OrdersUpdatelineitemshippingdetailsCall) Fields(s ...googleapi.Field) *OrdersUpdatelineitemshippingdetailsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersUpdatelineitemshippingdetailsCall) Header ¶
func (c *OrdersUpdatelineitemshippingdetailsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
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 OrdertrackingsignalsCreateCall ¶ added in v0.36.0
type OrdertrackingsignalsCreateCall struct {
// contains filtered or unexported fields
}
func (*OrdertrackingsignalsCreateCall) Context ¶ added in v0.36.0
func (c *OrdertrackingsignalsCreateCall) Context(ctx context.Context) *OrdertrackingsignalsCreateCall
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 (*OrdertrackingsignalsCreateCall) Do ¶ added in v0.36.0
func (c *OrdertrackingsignalsCreateCall) Do(opts ...googleapi.CallOption) (*OrderTrackingSignal, error)
Do executes the "content.ordertrackingsignals.create" call. Exactly one of *OrderTrackingSignal or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrderTrackingSignal.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 (*OrdertrackingsignalsCreateCall) Fields ¶ added in v0.36.0
func (c *OrdertrackingsignalsCreateCall) Fields(s ...googleapi.Field) *OrdertrackingsignalsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdertrackingsignalsCreateCall) Header ¶ added in v0.36.0
func (c *OrdertrackingsignalsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrdertrackingsignalsService ¶ added in v0.36.0
type OrdertrackingsignalsService struct {
// contains filtered or unexported fields
}
func NewOrdertrackingsignalsService ¶ added in v0.36.0
func NewOrdertrackingsignalsService(s *APIService) *OrdertrackingsignalsService
func (*OrdertrackingsignalsService) Create ¶ added in v0.36.0
func (r *OrdertrackingsignalsService) Create(merchantId int64, ordertrackingsignal *OrderTrackingSignal) *OrdertrackingsignalsCreateCall
Create: Creates new order tracking signal.
type PickupCarrierService ¶ added in v0.16.0
type PickupCarrierService struct { // CarrierName: The name of the pickup carrier (e.g., "UPS"). // Required. CarrierName string `json:"carrierName,omitempty"` // ServiceName: The name of the pickup service (e.g., "Access point"). // Required. ServiceName string `json:"serviceName,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 (*PickupCarrierService) MarshalJSON ¶ added in v0.16.0
func (s *PickupCarrierService) MarshalJSON() ([]byte, error)
type PickupServicesPickupService ¶ added in v0.16.0
type PickupServicesPickupService struct { // CarrierName: The name of the carrier (e.g., "UPS"). Always present. CarrierName string `json:"carrierName,omitempty"` // Country: The CLDR country code of the carrier (e.g., "US"). Always // present. Country string `json:"country,omitempty"` // ServiceName: The name of the pickup service (e.g., "Access point"). // Always present. ServiceName string `json:"serviceName,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 (*PickupServicesPickupService) MarshalJSON ¶ added in v0.16.0
func (s *PickupServicesPickupService) MarshalJSON() ([]byte, error)
type PosCustomBatchRequest ¶
type PosCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*PosCustomBatchRequestEntry `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 (*PosCustomBatchRequest) MarshalJSON ¶
func (s *PosCustomBatchRequest) MarshalJSON() ([]byte, error)
type PosCustomBatchRequestEntry ¶
type PosCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // Inventory: The inventory to submit. This should be set only if the // method is `inventory`. Inventory *PosInventory `json:"inventory,omitempty"` // MerchantId: The ID of the POS data provider. MerchantId uint64 `json:"merchantId,omitempty,string"` // Method: The method of the batch entry. Acceptable values are: - // "delete" - "get" - "insert" - "inventory" - "sale" Method string `json:"method,omitempty"` // Sale: The sale information to submit. This should be set only if the // method is `sale`. Sale *PosSale `json:"sale,omitempty"` // Store: The store information to submit. This should be set only if // the method is `insert`. Store *PosStore `json:"store,omitempty"` // StoreCode: The store code. This should be set only if the method is // `delete` or `get`. StoreCode string `json:"storeCode,omitempty"` // TargetMerchantId: The ID of the account for which to get/submit data. TargetMerchantId uint64 `json:"targetMerchantId,omitempty,string"` // 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 (*PosCustomBatchRequestEntry) MarshalJSON ¶
func (s *PosCustomBatchRequestEntry) MarshalJSON() ([]byte, error)
type PosCustomBatchResponse ¶
type PosCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*PosCustomBatchResponseEntry `json:"entries,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#posCustomBatchResponse". 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 (*PosCustomBatchResponse) MarshalJSON ¶
func (s *PosCustomBatchResponse) MarshalJSON() ([]byte, error)
type PosCustomBatchResponseEntry ¶
type PosCustomBatchResponseEntry 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"` // Inventory: The updated inventory information. Inventory *PosInventory `json:"inventory,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#posCustomBatchResponseEntry" Kind string `json:"kind,omitempty"` // Sale: The updated sale information. Sale *PosSale `json:"sale,omitempty"` // Store: The retrieved or updated store information. Store *PosStore `json:"store,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 (*PosCustomBatchResponseEntry) MarshalJSON ¶
func (s *PosCustomBatchResponseEntry) MarshalJSON() ([]byte, error)
type PosCustombatchCall ¶
type PosCustombatchCall struct {
// contains filtered or unexported fields
}
func (*PosCustombatchCall) Context ¶
func (c *PosCustombatchCall) Context(ctx context.Context) *PosCustombatchCall
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 (*PosCustombatchCall) Do ¶
func (c *PosCustombatchCall) Do(opts ...googleapi.CallOption) (*PosCustomBatchResponse, error)
Do executes the "content.pos.custombatch" call. Exactly one of *PosCustomBatchResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PosCustomBatchResponse.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 (*PosCustombatchCall) Fields ¶
func (c *PosCustombatchCall) Fields(s ...googleapi.Field) *PosCustombatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PosCustombatchCall) Header ¶
func (c *PosCustombatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type PosDataProviders ¶
type PosDataProviders struct { // Country: Country code. Country string `json:"country,omitempty"` // PosDataProviders: A list of POS data providers. PosDataProviders []*PosDataProvidersPosDataProvider `json:"posDataProviders,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 (*PosDataProviders) MarshalJSON ¶
func (s *PosDataProviders) MarshalJSON() ([]byte, error)
type PosDataProvidersPosDataProvider ¶
type PosDataProvidersPosDataProvider struct { // DisplayName: The display name of Pos data Provider. DisplayName string `json:"displayName,omitempty"` // FullName: The full name of this POS data Provider. FullName string `json:"fullName,omitempty"` // ProviderId: The ID of the account. ProviderId uint64 `json:"providerId,omitempty,string"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PosDataProvidersPosDataProvider) MarshalJSON ¶
func (s *PosDataProvidersPosDataProvider) MarshalJSON() ([]byte, error)
type PosDeleteCall ¶
type PosDeleteCall struct {
// contains filtered or unexported fields
}
func (*PosDeleteCall) Context ¶
func (c *PosDeleteCall) Context(ctx context.Context) *PosDeleteCall
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 (*PosDeleteCall) Do ¶
func (c *PosDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "content.pos.delete" call.
func (*PosDeleteCall) Fields ¶
func (c *PosDeleteCall) Fields(s ...googleapi.Field) *PosDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PosDeleteCall) Header ¶
func (c *PosDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type PosGetCall ¶
type PosGetCall struct {
// contains filtered or unexported fields
}
func (*PosGetCall) Context ¶
func (c *PosGetCall) Context(ctx context.Context) *PosGetCall
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 (*PosGetCall) Do ¶
func (c *PosGetCall) Do(opts ...googleapi.CallOption) (*PosStore, error)
Do executes the "content.pos.get" call. Exactly one of *PosStore or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PosStore.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 (*PosGetCall) Fields ¶
func (c *PosGetCall) Fields(s ...googleapi.Field) *PosGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PosGetCall) Header ¶
func (c *PosGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PosGetCall) IfNoneMatch ¶
func (c *PosGetCall) IfNoneMatch(entityTag string) *PosGetCall
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 PosInsertCall ¶
type PosInsertCall struct {
// contains filtered or unexported fields
}
func (*PosInsertCall) Context ¶
func (c *PosInsertCall) Context(ctx context.Context) *PosInsertCall
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 (*PosInsertCall) Do ¶
func (c *PosInsertCall) Do(opts ...googleapi.CallOption) (*PosStore, error)
Do executes the "content.pos.insert" call. Exactly one of *PosStore or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PosStore.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 (*PosInsertCall) Fields ¶
func (c *PosInsertCall) Fields(s ...googleapi.Field) *PosInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PosInsertCall) Header ¶
func (c *PosInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type PosInventory ¶
type PosInventory struct { // ContentLanguage: Required. The two-letter ISO 639-1 language code for // the item. ContentLanguage string `json:"contentLanguage,omitempty"` // Gtin: Global Trade Item Number. Gtin string `json:"gtin,omitempty"` // ItemId: Required. A unique identifier for the item. ItemId string `json:"itemId,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#posInventory" Kind string `json:"kind,omitempty"` // Price: Required. The current price of the item. Price *Price `json:"price,omitempty"` // Quantity: Required. The available quantity of the item. Quantity int64 `json:"quantity,omitempty,string"` // StoreCode: Required. The identifier of the merchant's store. Either a // `storeCode` inserted via the API or the code of the store in Google // My Business. StoreCode string `json:"storeCode,omitempty"` // TargetCountry: Required. The CLDR territory code for the item. TargetCountry string `json:"targetCountry,omitempty"` // Timestamp: Required. The inventory timestamp, in ISO 8601 format. Timestamp string `json:"timestamp,omitempty"` // ForceSendFields is a list of field names (e.g. "ContentLanguage") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ContentLanguage") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
PosInventory: The absolute quantity of an item available at the given store.
func (*PosInventory) MarshalJSON ¶
func (s *PosInventory) MarshalJSON() ([]byte, error)
type PosInventoryCall ¶
type PosInventoryCall struct {
// contains filtered or unexported fields
}
func (*PosInventoryCall) Context ¶
func (c *PosInventoryCall) Context(ctx context.Context) *PosInventoryCall
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 (*PosInventoryCall) Do ¶
func (c *PosInventoryCall) Do(opts ...googleapi.CallOption) (*PosInventoryResponse, error)
Do executes the "content.pos.inventory" call. Exactly one of *PosInventoryResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PosInventoryResponse.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 (*PosInventoryCall) Fields ¶
func (c *PosInventoryCall) Fields(s ...googleapi.Field) *PosInventoryCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PosInventoryCall) Header ¶
func (c *PosInventoryCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type PosInventoryRequest ¶
type PosInventoryRequest struct { // ContentLanguage: Required. The two-letter ISO 639-1 language code for // the item. ContentLanguage string `json:"contentLanguage,omitempty"` // Gtin: Global Trade Item Number. Gtin string `json:"gtin,omitempty"` // ItemId: Required. A unique identifier for the item. ItemId string `json:"itemId,omitempty"` // Price: Required. The current price of the item. Price *Price `json:"price,omitempty"` // Quantity: Required. The available quantity of the item. Quantity int64 `json:"quantity,omitempty,string"` // StoreCode: Required. The identifier of the merchant's store. Either a // `storeCode` inserted via the API or the code of the store in Google // My Business. StoreCode string `json:"storeCode,omitempty"` // TargetCountry: Required. The CLDR territory code for the item. TargetCountry string `json:"targetCountry,omitempty"` // Timestamp: Required. The inventory timestamp, in ISO 8601 format. Timestamp string `json:"timestamp,omitempty"` // ForceSendFields is a list of field names (e.g. "ContentLanguage") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ContentLanguage") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*PosInventoryRequest) MarshalJSON ¶
func (s *PosInventoryRequest) MarshalJSON() ([]byte, error)
type PosInventoryResponse ¶
type PosInventoryResponse struct { // ContentLanguage: Required. The two-letter ISO 639-1 language code for // the item. ContentLanguage string `json:"contentLanguage,omitempty"` // Gtin: Global Trade Item Number. Gtin string `json:"gtin,omitempty"` // ItemId: Required. A unique identifier for the item. ItemId string `json:"itemId,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#posInventoryResponse". Kind string `json:"kind,omitempty"` // Price: Required. The current price of the item. Price *Price `json:"price,omitempty"` // Quantity: Required. The available quantity of the item. Quantity int64 `json:"quantity,omitempty,string"` // StoreCode: Required. The identifier of the merchant's store. Either a // `storeCode` inserted via the API or the code of the store in Google // My Business. StoreCode string `json:"storeCode,omitempty"` // TargetCountry: Required. The CLDR territory code for the item. TargetCountry string `json:"targetCountry,omitempty"` // Timestamp: Required. The inventory timestamp, in ISO 8601 format. Timestamp string `json:"timestamp,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ContentLanguage") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ContentLanguage") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*PosInventoryResponse) MarshalJSON ¶
func (s *PosInventoryResponse) MarshalJSON() ([]byte, error)
type PosListCall ¶
type PosListCall struct {
// contains filtered or unexported fields
}
func (*PosListCall) Context ¶
func (c *PosListCall) Context(ctx context.Context) *PosListCall
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 (*PosListCall) Do ¶
func (c *PosListCall) Do(opts ...googleapi.CallOption) (*PosListResponse, error)
Do executes the "content.pos.list" call. Exactly one of *PosListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PosListResponse.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 (*PosListCall) Fields ¶
func (c *PosListCall) Fields(s ...googleapi.Field) *PosListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PosListCall) Header ¶
func (c *PosListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PosListCall) IfNoneMatch ¶
func (c *PosListCall) IfNoneMatch(entityTag string) *PosListCall
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 PosListResponse ¶
type PosListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#posListResponse". Kind string `json:"kind,omitempty"` Resources []*PosStore `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 (*PosListResponse) MarshalJSON ¶
func (s *PosListResponse) MarshalJSON() ([]byte, error)
type PosSale ¶
type PosSale struct { // ContentLanguage: Required. The two-letter ISO 639-1 language code for // the item. ContentLanguage string `json:"contentLanguage,omitempty"` // Gtin: Global Trade Item Number. Gtin string `json:"gtin,omitempty"` // ItemId: Required. A unique identifier for the item. ItemId string `json:"itemId,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#posSale" Kind string `json:"kind,omitempty"` // Price: Required. The price of the item. Price *Price `json:"price,omitempty"` // Quantity: Required. The relative change of the available quantity. // Negative for items returned. Quantity int64 `json:"quantity,omitempty,string"` // SaleId: A unique ID to group items from the same sale event. SaleId string `json:"saleId,omitempty"` // StoreCode: Required. The identifier of the merchant's store. Either a // `storeCode` inserted via the API or the code of the store in Google // My Business. StoreCode string `json:"storeCode,omitempty"` // TargetCountry: Required. The CLDR territory code for the item. TargetCountry string `json:"targetCountry,omitempty"` // Timestamp: Required. The inventory timestamp, in ISO 8601 format. Timestamp string `json:"timestamp,omitempty"` // ForceSendFields is a list of field names (e.g. "ContentLanguage") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ContentLanguage") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
PosSale: The change of the available quantity of an item at the given store.
func (*PosSale) MarshalJSON ¶
type PosSaleCall ¶
type PosSaleCall struct {
// contains filtered or unexported fields
}
func (*PosSaleCall) Context ¶
func (c *PosSaleCall) Context(ctx context.Context) *PosSaleCall
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 (*PosSaleCall) Do ¶
func (c *PosSaleCall) Do(opts ...googleapi.CallOption) (*PosSaleResponse, error)
Do executes the "content.pos.sale" call. Exactly one of *PosSaleResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PosSaleResponse.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 (*PosSaleCall) Fields ¶
func (c *PosSaleCall) Fields(s ...googleapi.Field) *PosSaleCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PosSaleCall) Header ¶
func (c *PosSaleCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type PosSaleRequest ¶
type PosSaleRequest struct { // ContentLanguage: Required. The two-letter ISO 639-1 language code for // the item. ContentLanguage string `json:"contentLanguage,omitempty"` // Gtin: Global Trade Item Number. Gtin string `json:"gtin,omitempty"` // ItemId: Required. A unique identifier for the item. ItemId string `json:"itemId,omitempty"` // Price: Required. The price of the item. Price *Price `json:"price,omitempty"` // Quantity: Required. The relative change of the available quantity. // Negative for items returned. Quantity int64 `json:"quantity,omitempty,string"` // SaleId: A unique ID to group items from the same sale event. SaleId string `json:"saleId,omitempty"` // StoreCode: Required. The identifier of the merchant's store. Either a // `storeCode` inserted via the API or the code of the store in Google // My Business. StoreCode string `json:"storeCode,omitempty"` // TargetCountry: Required. The CLDR territory code for the item. TargetCountry string `json:"targetCountry,omitempty"` // Timestamp: Required. The inventory timestamp, in ISO 8601 format. Timestamp string `json:"timestamp,omitempty"` // ForceSendFields is a list of field names (e.g. "ContentLanguage") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ContentLanguage") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*PosSaleRequest) MarshalJSON ¶
func (s *PosSaleRequest) MarshalJSON() ([]byte, error)
type PosSaleResponse ¶
type PosSaleResponse struct { // ContentLanguage: Required. The two-letter ISO 639-1 language code for // the item. ContentLanguage string `json:"contentLanguage,omitempty"` // Gtin: Global Trade Item Number. Gtin string `json:"gtin,omitempty"` // ItemId: Required. A unique identifier for the item. ItemId string `json:"itemId,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#posSaleResponse". Kind string `json:"kind,omitempty"` // Price: Required. The price of the item. Price *Price `json:"price,omitempty"` // Quantity: Required. The relative change of the available quantity. // Negative for items returned. Quantity int64 `json:"quantity,omitempty,string"` // SaleId: A unique ID to group items from the same sale event. SaleId string `json:"saleId,omitempty"` // StoreCode: Required. The identifier of the merchant's store. Either a // `storeCode` inserted via the API or the code of the store in Google // My Business. StoreCode string `json:"storeCode,omitempty"` // TargetCountry: Required. The CLDR territory code for the item. TargetCountry string `json:"targetCountry,omitempty"` // Timestamp: Required. The inventory timestamp, in ISO 8601 format. Timestamp string `json:"timestamp,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ContentLanguage") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ContentLanguage") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*PosSaleResponse) MarshalJSON ¶
func (s *PosSaleResponse) MarshalJSON() ([]byte, error)
type PosService ¶
type PosService struct {
// contains filtered or unexported fields
}
func NewPosService ¶
func NewPosService(s *APIService) *PosService
func (*PosService) Custombatch ¶
func (r *PosService) Custombatch(poscustombatchrequest *PosCustomBatchRequest) *PosCustombatchCall
Custombatch: Batches multiple POS-related calls in a single request.
func (*PosService) Delete ¶
func (r *PosService) Delete(merchantId uint64, targetMerchantId uint64, storeCode string) *PosDeleteCall
Delete: Deletes a store for the given merchant.
func (*PosService) Get ¶
func (r *PosService) Get(merchantId uint64, targetMerchantId uint64, storeCode string) *PosGetCall
Get: Retrieves information about the given store.
func (*PosService) Insert ¶
func (r *PosService) Insert(merchantId uint64, targetMerchantId uint64, posstore *PosStore) *PosInsertCall
Insert: Creates a store for the given merchant.
func (*PosService) Inventory ¶
func (r *PosService) Inventory(merchantId uint64, targetMerchantId uint64, posinventoryrequest *PosInventoryRequest) *PosInventoryCall
Inventory: Submit inventory for the given merchant.
func (*PosService) List ¶
func (r *PosService) List(merchantId uint64, targetMerchantId uint64) *PosListCall
List: Lists the stores of the target merchant.
func (*PosService) Sale ¶
func (r *PosService) Sale(merchantId uint64, targetMerchantId uint64, possalerequest *PosSaleRequest) *PosSaleCall
Sale: Submit a sale event for the given merchant.
type PosStore ¶
type PosStore struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#posStore" Kind string `json:"kind,omitempty"` // StoreAddress: Required. The street address of the store. StoreAddress string `json:"storeAddress,omitempty"` // StoreCode: Required. A store identifier that is unique for the given // merchant. StoreCode string `json:"storeCode,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:"-"` }
PosStore: Store resource.
func (*PosStore) MarshalJSON ¶
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 ¶
type PriceAmount ¶ added in v0.36.0
type PriceAmount 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:"-"` }
PriceAmount: The price represented as a number and currency.
func (*PriceAmount) MarshalJSON ¶ added in v0.36.0
func (s *PriceAmount) MarshalJSON() ([]byte, error)
type Product ¶
type Product struct { // AdditionalImageLinks: Additional URLs of images of the item. AdditionalImageLinks []string `json:"additionalImageLinks,omitempty"` // AdsGrouping: Used to group items in an arbitrary way. Only for CPA%, // discouraged otherwise. AdsGrouping string `json:"adsGrouping,omitempty"` // AdsLabels: Similar to ads_grouping, but only works on CPC. AdsLabels []string `json:"adsLabels,omitempty"` // AdsRedirect: Allows advertisers to override the item URL when the // product is shown within the context of Product Ads. AdsRedirect string `json:"adsRedirect,omitempty"` // Adult: Should be set to true if the item is targeted towards adults. Adult bool `json:"adult,omitempty"` // AgeGroup: Target age group of the item. AgeGroup string `json:"ageGroup,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"` // CanonicalLink: URL for the canonical version of your item's landing // page. CanonicalLink string `json:"canonicalLink,omitempty"` // Channel: Required. The item's channel (online or local). Acceptable // values are: - "local" - "online" 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: Required. The two-letter ISO 639-1 language code for // the item. ContentLanguage string `json:"contentLanguage,omitempty"` // CostOfGoodsSold: Cost of goods sold. Used for gross profit reporting. CostOfGoodsSold *Price `json:"costOfGoodsSold,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", // "value": "regular" }`). This is useful for submitting attributes not // explicitly exposed by the API, such as additional attributes used for // Buy on Google (formerly known as Shopping Actions). CustomAttributes []*CustomAttribute `json:"customAttributes,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"` // 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"` // ExcludedDestinations: The list of destinations to exclude for this // target (corresponds to unchecked check boxes in Merchant Center). ExcludedDestinations []string `json:"excludedDestinations,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 // (https://support.google.com/merchants/answer/1705911)). When querying // products, this field will contain the user provided value. There is // currently no way to get back the auto assigned google product // categories through the API. 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. Content API methods that operate on // products take this as their `productId` parameter. The REST ID for a // product is of the form channel:contentLanguage: targetCountry: // offerId. 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"` // IncludedDestinations: The list of destinations to include for this // target (corresponds to checked check boxes in Merchant Center). // Default destinations are always included unless provided in // `excludedDestinations`. IncludedDestinations []string `json:"includedDestinations,omitempty"` // Installment: Number and amount of installments to pay for an item. 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"` // MaxEnergyEfficiencyClass: The energy efficiency class as defined in // EU directive 2010/30/EU. MaxEnergyEfficiencyClass string `json:"maxEnergyEfficiencyClass,omitempty"` // MaxHandlingTime: Maximal product handling time (in business days). MaxHandlingTime int64 `json:"maxHandlingTime,omitempty,string"` // MinEnergyEfficiencyClass: The energy efficiency class as defined in // EU directive 2010/30/EU. MinEnergyEfficiencyClass string `json:"minEnergyEfficiencyClass,omitempty"` // MinHandlingTime: Minimal product handling time (in business days). MinHandlingTime int64 `json:"minHandlingTime,omitempty,string"` // MobileLink: URL for the mobile-optimized version of your item's // 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: Required. A unique identifier for 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. *Note:* Content API methods that operate on products take // the REST ID of the product, *not* this identifier. OfferId string `json:"offerId,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"` // ProductDetails: Technical specification or additional product // details. ProductDetails []*ProductProductDetail `json:"productDetails,omitempty"` // ProductHighlights: Bullet points describing the most relevant // highlights of a product. ProductHighlights []string `json:"productHighlights,omitempty"` // ProductTypes: Categories of the item (formatted as in products data // specification). ProductTypes []string `json:"productTypes,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 data specification ). SalePriceEffectiveDate string `json:"salePriceEffectiveDate,omitempty"` // SellOnGoogleQuantity: The quantity of the product that is available // for selling on Google. Supported only for online products. SellOnGoogleQuantity int64 `json:"sellOnGoogleQuantity,omitempty,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"` // ShoppingAdsExcludedCountries: List of country codes (ISO 3166-1 // alpha-2) to exclude the offer from Shopping Ads destination. // Countries from this list are removed from countries configured in MC // feed settings. ShoppingAdsExcludedCountries []string `json:"shoppingAdsExcludedCountries,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. Only one value is allowed. For variants with // different sizes, insert a separate product for each size with the // same `itemGroupId` value (see size definition). Sizes []string `json:"sizes,omitempty"` // Source: The source of the offer, i.e., how the offer was created. // Acceptable values are: - "api" - "crawl" - "feed" Source string `json:"source,omitempty"` // SubscriptionCost: Number of periods (months or years) and amount of // payment per period for an item with an associated subscription // contract. SubscriptionCost *ProductSubscriptionCost `json:"subscriptionCost,omitempty"` // TargetCountry: Required. The CLDR territory code for the item. TargetCountry string `json:"targetCountry,omitempty"` // TaxCategory: The tax category of the product, used to configure // detailed tax nexus in account-level tax settings. TaxCategory string `json:"taxCategory,omitempty"` // Taxes: Tax information. Taxes []*ProductTax `json:"taxes,omitempty"` // Title: Title of the item. Title string `json:"title,omitempty"` // TransitTimeLabel: The transit time label of the product, used to // group product in account-level transit time tables. TransitTimeLabel string `json:"transitTimeLabel,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"` // 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:"-"` }
Product: Required product attributes are primarily defined by the products data specification. See the Products Data Specification Help Center article for information. Some attributes are country-specific, so make sure you select the appropriate country in the drop-down selector at the top of the page. Product data. After inserting, updating, or deleting a product, it may take several minutes before changes take effect.
func (*Product) MarshalJSON ¶
func (*Product) UnmarshalJSON ¶
type ProductAmount ¶ added in v0.2.0
type ProductAmount struct { // PriceAmount: The pre-tax or post-tax price depending on the location // of the order. PriceAmount *Price `json:"priceAmount,omitempty"` // RemittedTaxAmount: Remitted tax value. RemittedTaxAmount *Price `json:"remittedTaxAmount,omitempty"` // TaxAmount: Tax value. TaxAmount *Price `json:"taxAmount,omitempty"` // ForceSendFields is a list of field names (e.g. "PriceAmount") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PriceAmount") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ProductAmount) MarshalJSON ¶ added in v0.2.0
func (s *ProductAmount) MarshalJSON() ([]byte, error)
type ProductProductDetail ¶ added in v0.29.0
type ProductProductDetail struct { // AttributeName: The name of the product detail. AttributeName string `json:"attributeName,omitempty"` // AttributeValue: The value of the product detail. AttributeValue string `json:"attributeValue,omitempty"` // SectionName: The section header used to group a set of product // details. SectionName string `json:"sectionName,omitempty"` // ForceSendFields is a list of field names (e.g. "AttributeName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AttributeName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ProductProductDetail) MarshalJSON ¶ added in v0.29.0
func (s *ProductProductDetail) 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. 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. 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 ¶
type ProductStatus struct { // CreationDate: Date on which the item has been created, in ISO 8601 // format. CreationDate string `json:"creationDate,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"` // ItemLevelIssues: A list of all issues associated with the product. ItemLevelIssues []*ProductStatusItemLevelIssue `json:"itemLevelIssues,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:"-"` }
ProductStatus: The status of a product, i.e., information about a product computed asynchronously.
func (*ProductStatus) MarshalJSON ¶
func (s *ProductStatus) MarshalJSON() ([]byte, error)
type ProductStatusDestinationStatus ¶
type ProductStatusDestinationStatus struct { // ApprovedCountries: List of country codes (ISO 3166-1 alpha-2) where // the offer is approved. ApprovedCountries []string `json:"approvedCountries,omitempty"` // Destination: The name of the destination Destination string `json:"destination,omitempty"` // DisapprovedCountries: List of country codes (ISO 3166-1 alpha-2) // where the offer is disapproved. DisapprovedCountries []string `json:"disapprovedCountries,omitempty"` // PendingCountries: List of country codes (ISO 3166-1 alpha-2) where // the offer is pending approval. PendingCountries []string `json:"pendingCountries,omitempty"` // Status: Destination approval status in `targetCountry` of the offer. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "ApprovedCountries") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ApprovedCountries") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a 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 ProductStatusItemLevelIssue ¶
type ProductStatusItemLevelIssue struct { // ApplicableCountries: List of country codes (ISO 3166-1 alpha-2) where // issue applies to the offer. ApplicableCountries []string `json:"applicableCountries,omitempty"` // AttributeName: The attribute's name, if the issue is caused by a // single attribute. AttributeName string `json:"attributeName,omitempty"` // Code: The error code of the issue. Code string `json:"code,omitempty"` // Description: A short issue description in English. Description string `json:"description,omitempty"` // Destination: The destination the issue applies to. Destination string `json:"destination,omitempty"` // Detail: A detailed issue description in English. Detail string `json:"detail,omitempty"` // Documentation: The URL of a web page to help with resolving this // issue. Documentation string `json:"documentation,omitempty"` // Resolution: Whether the issue can be resolved by the merchant. Resolution string `json:"resolution,omitempty"` // Servability: How this issue affects serving of the offer. Servability string `json:"servability,omitempty"` // ForceSendFields is a list of field names (e.g. "ApplicableCountries") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ApplicableCountries") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*ProductStatusItemLevelIssue) MarshalJSON ¶
func (s *ProductStatusItemLevelIssue) MarshalJSON() ([]byte, error)
type ProductSubscriptionCost ¶ added in v0.29.0
type ProductSubscriptionCost struct { // Amount: The amount the buyer has to pay per subscription period. Amount *Price `json:"amount,omitempty"` // Period: The type of subscription period. Period string `json:"period,omitempty"` // PeriodLength: The number of subscription periods the buyer has to // pay. PeriodLength int64 `json:"periodLength,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 (*ProductSubscriptionCost) MarshalJSON ¶ added in v0.29.0
func (s *ProductSubscriptionCost) 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: Should be 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 ¶
type ProductsCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // FeedId: The Content API feed id. FeedId uint64 `json:"feedId,omitempty,string"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` // Method: The method of the batch entry. Acceptable values are: - // "delete" - "get" - "insert" 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:"-"` }
ProductsCustomBatchRequestEntry: A batch entry encoding a single non-batch products request.
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 ¶
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:"-"` }
ProductsCustomBatchResponseEntry: A batch entry encoding a single non-batch products response.
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) 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) FeedId ¶ added in v0.8.0
func (c *ProductsDeleteCall) FeedId(feedId uint64) *ProductsDeleteCall
FeedId sets the optional parameter "feedId": The Content API Supplemental Feed ID.
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) FeedId ¶ added in v0.8.0
func (c *ProductsInsertCall) FeedId(feedId uint64) *ProductsInsertCall
FeedId sets the optional parameter "feedId": The Content API Supplemental Feed ID.
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) 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.
func (*ProductsService) Delete ¶
func (r *ProductsService) Delete(merchantId uint64, productId string) *ProductsDeleteCall
Delete: Deletes a product from your Merchant Center account.
func (*ProductsService) Get ¶
func (r *ProductsService) Get(merchantId uint64, productId string) *ProductsGetCall
Get: Retrieves a product from your Merchant Center account.
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.
func (*ProductsService) List ¶
func (r *ProductsService) List(merchantId uint64) *ProductsListCall
List: Lists the products in your Merchant Center account. The response might contain fewer items than specified by maxResults. Rely on nextPageToken to determine if there are more items to be requested.
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 ¶
type ProductstatusesCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // Destinations: If set, only issues for the specified destinations are // returned, otherwise only issues for the Shopping destination. Destinations []string `json:"destinations,omitempty"` IncludeAttributes bool `json:"includeAttributes,omitempty"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` // Method: The method of the batch entry. Acceptable values are: - // "get" Method string `json:"method,omitempty"` // 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:"-"` }
ProductstatusesCustomBatchRequestEntry: A batch entry encoding a single non-batch productstatuses request.
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 ¶
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:"-"` }
ProductstatusesCustomBatchResponseEntry: A batch entry encoding a single non-batch productstatuses response.
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.
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) Destinations ¶
func (c *ProductstatusesGetCall) Destinations(destinations ...string) *ProductstatusesGetCall
Destinations sets the optional parameter "destinations": If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.
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.
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) Destinations ¶
func (c *ProductstatusesListCall) Destinations(destinations ...string) *ProductstatusesListCall
Destinations sets the optional parameter "destinations": If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.
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) 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 ProductstatusesRepricingreportsListCall ¶ added in v0.37.0
type ProductstatusesRepricingreportsListCall struct {
// contains filtered or unexported fields
}
func (*ProductstatusesRepricingreportsListCall) Context ¶ added in v0.37.0
func (c *ProductstatusesRepricingreportsListCall) Context(ctx context.Context) *ProductstatusesRepricingreportsListCall
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 (*ProductstatusesRepricingreportsListCall) Do ¶ added in v0.37.0
func (c *ProductstatusesRepricingreportsListCall) Do(opts ...googleapi.CallOption) (*ListRepricingProductReportsResponse, error)
Do executes the "content.productstatuses.repricingreports.list" call. Exactly one of *ListRepricingProductReportsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListRepricingProductReportsResponse.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 (*ProductstatusesRepricingreportsListCall) EndDate ¶ added in v0.37.0
func (c *ProductstatusesRepricingreportsListCall) EndDate(endDate string) *ProductstatusesRepricingreportsListCall
EndDate sets the optional parameter "endDate": Gets Repricing reports on and before this date in the merchant's timezone. You can only retrieve data up to 7 days ago (default) or earlier. Format is YYYY-MM-DD.
func (*ProductstatusesRepricingreportsListCall) Fields ¶ added in v0.37.0
func (c *ProductstatusesRepricingreportsListCall) Fields(s ...googleapi.Field) *ProductstatusesRepricingreportsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProductstatusesRepricingreportsListCall) Header ¶ added in v0.37.0
func (c *ProductstatusesRepricingreportsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProductstatusesRepricingreportsListCall) IfNoneMatch ¶ added in v0.37.0
func (c *ProductstatusesRepricingreportsListCall) IfNoneMatch(entityTag string) *ProductstatusesRepricingreportsListCall
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 (*ProductstatusesRepricingreportsListCall) PageSize ¶ added in v0.37.0
func (c *ProductstatusesRepricingreportsListCall) PageSize(pageSize int64) *ProductstatusesRepricingreportsListCall
PageSize sets the optional parameter "pageSize": Maximum number of days of reports to return. There can be more than one rule report returned per day. For example, if 3 rule types got applied to the same product within a 24-hour period, then a page_size of 1 will return 3 rule reports. The page size defaults to 50 and values above 1000 are coerced to 1000. This service may return fewer days of reports than this value, for example, if the time between your start and end date is less than the page size.
func (*ProductstatusesRepricingreportsListCall) PageToken ¶ added in v0.37.0
func (c *ProductstatusesRepricingreportsListCall) PageToken(pageToken string) *ProductstatusesRepricingreportsListCall
PageToken sets the optional parameter "pageToken": Token (if provided) to retrieve the subsequent page. All other parameters must match the original call that provided the page token.
func (*ProductstatusesRepricingreportsListCall) Pages ¶ added in v0.37.0
func (c *ProductstatusesRepricingreportsListCall) Pages(ctx context.Context, f func(*ListRepricingProductReportsResponse) 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 (*ProductstatusesRepricingreportsListCall) RuleId ¶ added in v0.37.0
func (c *ProductstatusesRepricingreportsListCall) RuleId(ruleId string) *ProductstatusesRepricingreportsListCall
RuleId sets the optional parameter "ruleId": Id of the Repricing rule. If specified, only gets this rule's reports.
func (*ProductstatusesRepricingreportsListCall) StartDate ¶ added in v0.37.0
func (c *ProductstatusesRepricingreportsListCall) StartDate(startDate string) *ProductstatusesRepricingreportsListCall
StartDate sets the optional parameter "startDate": Gets Repricing reports on and after this date in the merchant's timezone, up to one year ago. Do not use a start date later than 7 days ago (default). Format is YYYY-MM-DD.
type ProductstatusesRepricingreportsService ¶ added in v0.37.0
type ProductstatusesRepricingreportsService struct {
// contains filtered or unexported fields
}
func NewProductstatusesRepricingreportsService ¶ added in v0.37.0
func NewProductstatusesRepricingreportsService(s *APIService) *ProductstatusesRepricingreportsService
func (*ProductstatusesRepricingreportsService) List ¶ added in v0.37.0
func (r *ProductstatusesRepricingreportsService) List(merchantId int64, productId string) *ProductstatusesRepricingreportsListCall
List: Lists the metrics report for a given Repricing product.
type ProductstatusesService ¶
type ProductstatusesService struct { Repricingreports *ProductstatusesRepricingreportsService // 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.
func (*ProductstatusesService) Get ¶
func (r *ProductstatusesService) Get(merchantId uint64, productId string) *ProductstatusesGetCall
Get: Gets the status of a product from your Merchant Center account.
func (*ProductstatusesService) List ¶
func (r *ProductstatusesService) List(merchantId uint64) *ProductstatusesListCall
List: Lists the statuses of the products in your Merchant Center account.
type PubsubNotificationSettings ¶ added in v0.21.0
type PubsubNotificationSettings struct { // CloudTopicName: Cloud pub/sub topic to which notifications are sent // (read-only). CloudTopicName string `json:"cloudTopicName,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#pubsubNotificationSettings" Kind string `json:"kind,omitempty"` // RegisteredEvents: List of event types. Acceptable values are: - // "orderPendingShipment" RegisteredEvents []string `json:"registeredEvents,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CloudTopicName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CloudTopicName") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
PubsubNotificationSettings: Settings for Pub/Sub notifications, all methods require that the caller is a direct user of the merchant center account.
func (*PubsubNotificationSettings) MarshalJSON ¶ added in v0.21.0
func (s *PubsubNotificationSettings) MarshalJSON() ([]byte, error)
type PubsubnotificationsettingsGetCall ¶ added in v0.21.0
type PubsubnotificationsettingsGetCall struct {
// contains filtered or unexported fields
}
func (*PubsubnotificationsettingsGetCall) Context ¶ added in v0.21.0
func (c *PubsubnotificationsettingsGetCall) Context(ctx context.Context) *PubsubnotificationsettingsGetCall
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 (*PubsubnotificationsettingsGetCall) Do ¶ added in v0.21.0
func (c *PubsubnotificationsettingsGetCall) Do(opts ...googleapi.CallOption) (*PubsubNotificationSettings, error)
Do executes the "content.pubsubnotificationsettings.get" call. Exactly one of *PubsubNotificationSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PubsubNotificationSettings.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 (*PubsubnotificationsettingsGetCall) Fields ¶ added in v0.21.0
func (c *PubsubnotificationsettingsGetCall) Fields(s ...googleapi.Field) *PubsubnotificationsettingsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PubsubnotificationsettingsGetCall) Header ¶ added in v0.21.0
func (c *PubsubnotificationsettingsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*PubsubnotificationsettingsGetCall) IfNoneMatch ¶ added in v0.21.0
func (c *PubsubnotificationsettingsGetCall) IfNoneMatch(entityTag string) *PubsubnotificationsettingsGetCall
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 PubsubnotificationsettingsService ¶ added in v0.21.0
type PubsubnotificationsettingsService struct {
// contains filtered or unexported fields
}
func NewPubsubnotificationsettingsService ¶ added in v0.21.0
func NewPubsubnotificationsettingsService(s *APIService) *PubsubnotificationsettingsService
func (*PubsubnotificationsettingsService) Get ¶ added in v0.21.0
func (r *PubsubnotificationsettingsService) Get(merchantId uint64) *PubsubnotificationsettingsGetCall
Get: Retrieves a Merchant Center account's pubsub notification settings.
func (*PubsubnotificationsettingsService) Update ¶ added in v0.21.0
func (r *PubsubnotificationsettingsService) Update(merchantId uint64, pubsubnotificationsettings *PubsubNotificationSettings) *PubsubnotificationsettingsUpdateCall
Update: Register a Merchant Center account for pubsub notifications. Note that cloud topic name should not be provided as part of the request.
type PubsubnotificationsettingsUpdateCall ¶ added in v0.21.0
type PubsubnotificationsettingsUpdateCall struct {
// contains filtered or unexported fields
}
func (*PubsubnotificationsettingsUpdateCall) Context ¶ added in v0.21.0
func (c *PubsubnotificationsettingsUpdateCall) Context(ctx context.Context) *PubsubnotificationsettingsUpdateCall
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 (*PubsubnotificationsettingsUpdateCall) Do ¶ added in v0.21.0
func (c *PubsubnotificationsettingsUpdateCall) Do(opts ...googleapi.CallOption) (*PubsubNotificationSettings, error)
Do executes the "content.pubsubnotificationsettings.update" call. Exactly one of *PubsubNotificationSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PubsubNotificationSettings.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 (*PubsubnotificationsettingsUpdateCall) Fields ¶ added in v0.21.0
func (c *PubsubnotificationsettingsUpdateCall) Fields(s ...googleapi.Field) *PubsubnotificationsettingsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PubsubnotificationsettingsUpdateCall) Header ¶ added in v0.21.0
func (c *PubsubnotificationsettingsUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
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"` // Name: Name of the rate group. Optional. If set has to be unique // within shipping service. Name string `json:"name,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 ¶
type RefundReason ¶
type RefundReason struct { // Description: Description of the reason. Description string `json:"description,omitempty"` // ReasonCode: Code of the refund reason. Acceptable values are: - // "adjustment" - "autoPostInternal" - // "autoPostInvalidBillingAddress" - "autoPostNoInventory" - // "autoPostPriceError" - "autoPostUndeliverableShippingAddress" - // "couponAbuse" - "courtesyAdjustment" - "customerCanceled" - // "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" // - "customerSupportRequested" - "deliveredLateByCarrier" - // "deliveredTooLate" - "expiredItem" - // "failToPushOrderGoogleError" - "failToPushOrderMerchantError" - // "failToPushOrderMerchantFulfillmentError" - // "failToPushOrderToMerchant" - // "failToPushOrderToMerchantOutOfStock" - "feeAdjustment" - // "invalidCoupon" - "lateShipmentCredit" - // "malformedShippingAddress" - "merchantDidNotShipOnTime" - // "noInventory" - "orderTimeout" - "other" - "paymentAbuse" - // "paymentDeclined" - "priceAdjustment" - "priceError" - // "productArrivedDamaged" - "productNotAsDescribed" - // "promoReallocation" - "qualityNotAsExpected" - // "returnRefundAbuse" - "shippingCostAdjustment" - // "shippingPriceError" - "taxAdjustment" - "taxError" - // "undeliverableShippingAddress" - "unsupportedPoBoxAddress" - // "wrongProductShipped" ReasonCode string `json:"reasonCode,omitempty"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*RefundReason) MarshalJSON ¶
func (s *RefundReason) MarshalJSON() ([]byte, error)
type Region ¶ added in v0.36.0
type Region struct { // DisplayName: The display name of the region. DisplayName string `json:"displayName,omitempty"` // GeotargetArea: A list of geotargets that defines the region area. GeotargetArea *RegionGeoTargetArea `json:"geotargetArea,omitempty"` // MerchantId: Output only. Immutable. Merchant that owns the region. MerchantId int64 `json:"merchantId,omitempty,string"` // PostalCodeArea: A list of postal codes that defines the region area. PostalCodeArea *RegionPostalCodeArea `json:"postalCodeArea,omitempty"` // RegionId: Output only. Immutable. The ID uniquely identifying each // region. RegionId string `json:"regionId,omitempty"` // RegionalInventoryEligible: Output only. Indicates if the region is // eligible to use in the Regional Inventory configuration. RegionalInventoryEligible bool `json:"regionalInventoryEligible,omitempty"` // ShippingEligible: Output only. Indicates if the region is eligible to // use in the Shipping Services configuration. ShippingEligible bool `json:"shippingEligible,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "DisplayName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DisplayName") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Region: Represents a geographic region that you can use as a target with both the `RegionalInventory` and `ShippingSettings` services. You can define regions as collections of either postal codes or, in some countries, using predefined geotargets.
func (*Region) MarshalJSON ¶ added in v0.36.0
type RegionGeoTargetArea ¶ added in v0.36.0
type RegionGeoTargetArea struct { // GeotargetCriteriaIds: Required. A non-empty list of location IDs // (https://developers.google.com/adwords/api/docs/appendix/geotargeting). // They must all be of the same location type (e.g., state). GeotargetCriteriaIds googleapi.Int64s `json:"geotargetCriteriaIds,omitempty"` // ForceSendFields is a list of field names (e.g. // "GeotargetCriteriaIds") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "GeotargetCriteriaIds") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
RegionGeoTargetArea: A list of geotargets that defines the region area.
func (*RegionGeoTargetArea) MarshalJSON ¶ added in v0.36.0
func (s *RegionGeoTargetArea) MarshalJSON() ([]byte, error)
type RegionPostalCodeArea ¶ added in v0.36.0
type RegionPostalCodeArea struct { // PostalCodes: Required. A range of postal codes. PostalCodes []*RegionPostalCodeAreaPostalCodeRange `json:"postalCodes,omitempty"` // RegionCode: Required. CLDR territory code or the country the postal // code group applies to. RegionCode string `json:"regionCode,omitempty"` // ForceSendFields is a list of field names (e.g. "PostalCodes") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PostalCodes") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RegionPostalCodeArea: A list of postal codes that defines the region area. Note: All regions defined using postal codes are accessible via the account's `ShippingSettings.postalCodeGroups` resource.
func (*RegionPostalCodeArea) MarshalJSON ¶ added in v0.36.0
func (s *RegionPostalCodeArea) MarshalJSON() ([]byte, error)
type RegionPostalCodeAreaPostalCodeRange ¶ added in v0.36.0
type RegionPostalCodeAreaPostalCodeRange struct { // Begin: Required. 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*". Begin string `json:"begin,omitempty"` // End: Optional. 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. End string `json:"end,omitempty"` // ForceSendFields is a list of field names (e.g. "Begin") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Begin") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RegionPostalCodeAreaPostalCodeRange: A range of postal codes that defines the region area.
func (*RegionPostalCodeAreaPostalCodeRange) MarshalJSON ¶ added in v0.36.0
func (s *RegionPostalCodeAreaPostalCodeRange) MarshalJSON() ([]byte, error)
type RegionalInventory ¶ added in v0.2.0
type RegionalInventory struct { // Availability: The availability of the product. Availability string `json:"availability,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. CustomAttributes []*CustomAttribute `json:"customAttributes,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#regionalInventory". Kind string `json:"kind,omitempty"` // Price: The price of the product. Price *Price `json:"price,omitempty"` // RegionId: The ID uniquely identifying each region. RegionId string `json:"regionId,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"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
RegionalInventory: Regional inventory resource. contains the regional name and all attributes which are overridden for the specified region.
func (*RegionalInventory) MarshalJSON ¶ added in v0.2.0
func (s *RegionalInventory) MarshalJSON() ([]byte, error)
type RegionalinventoryCustomBatchRequest ¶ added in v0.2.0
type RegionalinventoryCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*RegionalinventoryCustomBatchRequestEntry `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 (*RegionalinventoryCustomBatchRequest) MarshalJSON ¶ added in v0.2.0
func (s *RegionalinventoryCustomBatchRequest) MarshalJSON() ([]byte, error)
type RegionalinventoryCustomBatchRequestEntry ¶ added in v0.2.0
type RegionalinventoryCustomBatchRequestEntry 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: Method of the batch request entry. Acceptable values are: - // "insert" Method string `json:"method,omitempty"` // ProductId: The ID of the product for which to update price and // availability. ProductId string `json:"productId,omitempty"` // RegionalInventory: Price and availability of the product. RegionalInventory *RegionalInventory `json:"regionalInventory,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:"-"` }
RegionalinventoryCustomBatchRequestEntry: A batch entry encoding a single non-batch regional inventory request.
func (*RegionalinventoryCustomBatchRequestEntry) MarshalJSON ¶ added in v0.2.0
func (s *RegionalinventoryCustomBatchRequestEntry) MarshalJSON() ([]byte, error)
type RegionalinventoryCustomBatchResponse ¶ added in v0.2.0
type RegionalinventoryCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*RegionalinventoryCustomBatchResponseEntry `json:"entries,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#regionalinventoryCustomBatchResponse". 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 (*RegionalinventoryCustomBatchResponse) MarshalJSON ¶ added in v0.2.0
func (s *RegionalinventoryCustomBatchResponse) MarshalJSON() ([]byte, error)
type RegionalinventoryCustomBatchResponseEntry ¶ added in v0.2.0
type RegionalinventoryCustomBatchResponseEntry 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#regionalinventoryCustomBatchResponseEntry". Kind string `json:"kind,omitempty"` // RegionalInventory: Price and availability of the product. RegionalInventory *RegionalInventory `json:"regionalInventory,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:"-"` }
RegionalinventoryCustomBatchResponseEntry: A batch entry encoding a single non-batch regional inventory response.
func (*RegionalinventoryCustomBatchResponseEntry) MarshalJSON ¶ added in v0.2.0
func (s *RegionalinventoryCustomBatchResponseEntry) MarshalJSON() ([]byte, error)
type RegionalinventoryCustombatchCall ¶ added in v0.2.0
type RegionalinventoryCustombatchCall struct {
// contains filtered or unexported fields
}
func (*RegionalinventoryCustombatchCall) Context ¶ added in v0.2.0
func (c *RegionalinventoryCustombatchCall) Context(ctx context.Context) *RegionalinventoryCustombatchCall
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 (*RegionalinventoryCustombatchCall) Do ¶ added in v0.2.0
func (c *RegionalinventoryCustombatchCall) Do(opts ...googleapi.CallOption) (*RegionalinventoryCustomBatchResponse, error)
Do executes the "content.regionalinventory.custombatch" call. Exactly one of *RegionalinventoryCustomBatchResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RegionalinventoryCustomBatchResponse.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 (*RegionalinventoryCustombatchCall) Fields ¶ added in v0.2.0
func (c *RegionalinventoryCustombatchCall) Fields(s ...googleapi.Field) *RegionalinventoryCustombatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionalinventoryCustombatchCall) Header ¶ added in v0.2.0
func (c *RegionalinventoryCustombatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type RegionalinventoryInsertCall ¶ added in v0.2.0
type RegionalinventoryInsertCall struct {
// contains filtered or unexported fields
}
func (*RegionalinventoryInsertCall) Context ¶ added in v0.2.0
func (c *RegionalinventoryInsertCall) Context(ctx context.Context) *RegionalinventoryInsertCall
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 (*RegionalinventoryInsertCall) Do ¶ added in v0.2.0
func (c *RegionalinventoryInsertCall) Do(opts ...googleapi.CallOption) (*RegionalInventory, error)
Do executes the "content.regionalinventory.insert" call. Exactly one of *RegionalInventory or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RegionalInventory.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 (*RegionalinventoryInsertCall) Fields ¶ added in v0.2.0
func (c *RegionalinventoryInsertCall) Fields(s ...googleapi.Field) *RegionalinventoryInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionalinventoryInsertCall) Header ¶ added in v0.2.0
func (c *RegionalinventoryInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type RegionalinventoryService ¶ added in v0.2.0
type RegionalinventoryService struct {
// contains filtered or unexported fields
}
func NewRegionalinventoryService ¶ added in v0.2.0
func NewRegionalinventoryService(s *APIService) *RegionalinventoryService
func (*RegionalinventoryService) Custombatch ¶ added in v0.2.0
func (r *RegionalinventoryService) Custombatch(regionalinventorycustombatchrequest *RegionalinventoryCustomBatchRequest) *RegionalinventoryCustombatchCall
Custombatch: Updates regional inventory for multiple products or regions in a single request.
func (*RegionalinventoryService) Insert ¶ added in v0.2.0
func (r *RegionalinventoryService) Insert(merchantId uint64, productId string, regionalinventory *RegionalInventory) *RegionalinventoryInsertCall
Insert: Update the regional inventory of a product in your Merchant Center account. If a regional inventory with the same region ID already exists, this method updates that entry.
type RegionsCreateCall ¶ added in v0.36.0
type RegionsCreateCall struct {
// contains filtered or unexported fields
}
func (*RegionsCreateCall) Context ¶ added in v0.36.0
func (c *RegionsCreateCall) Context(ctx context.Context) *RegionsCreateCall
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 (*RegionsCreateCall) Do ¶ added in v0.36.0
func (c *RegionsCreateCall) Do(opts ...googleapi.CallOption) (*Region, error)
Do executes the "content.regions.create" call. Exactly one of *Region or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Region.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 (*RegionsCreateCall) Fields ¶ added in v0.36.0
func (c *RegionsCreateCall) Fields(s ...googleapi.Field) *RegionsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionsCreateCall) Header ¶ added in v0.36.0
func (c *RegionsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionsCreateCall) RegionId ¶ added in v0.36.0
func (c *RegionsCreateCall) RegionId(regionId string) *RegionsCreateCall
RegionId sets the optional parameter "regionId": Required. The id of the region to create.
type RegionsDeleteCall ¶ added in v0.36.0
type RegionsDeleteCall struct {
// contains filtered or unexported fields
}
func (*RegionsDeleteCall) Context ¶ added in v0.36.0
func (c *RegionsDeleteCall) Context(ctx context.Context) *RegionsDeleteCall
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 (*RegionsDeleteCall) Do ¶ added in v0.36.0
func (c *RegionsDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "content.regions.delete" call.
func (*RegionsDeleteCall) Fields ¶ added in v0.36.0
func (c *RegionsDeleteCall) Fields(s ...googleapi.Field) *RegionsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionsDeleteCall) Header ¶ added in v0.36.0
func (c *RegionsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type RegionsGetCall ¶ added in v0.36.0
type RegionsGetCall struct {
// contains filtered or unexported fields
}
func (*RegionsGetCall) Context ¶ added in v0.36.0
func (c *RegionsGetCall) Context(ctx context.Context) *RegionsGetCall
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 (*RegionsGetCall) Do ¶ added in v0.36.0
func (c *RegionsGetCall) Do(opts ...googleapi.CallOption) (*Region, error)
Do executes the "content.regions.get" call. Exactly one of *Region or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Region.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 (*RegionsGetCall) Fields ¶ added in v0.36.0
func (c *RegionsGetCall) Fields(s ...googleapi.Field) *RegionsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionsGetCall) Header ¶ added in v0.36.0
func (c *RegionsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionsGetCall) IfNoneMatch ¶ added in v0.36.0
func (c *RegionsGetCall) IfNoneMatch(entityTag string) *RegionsGetCall
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 RegionsListCall ¶ added in v0.36.0
type RegionsListCall struct {
// contains filtered or unexported fields
}
func (*RegionsListCall) Context ¶ added in v0.36.0
func (c *RegionsListCall) Context(ctx context.Context) *RegionsListCall
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 (*RegionsListCall) Do ¶ added in v0.36.0
func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*ListRegionsResponse, error)
Do executes the "content.regions.list" call. Exactly one of *ListRegionsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListRegionsResponse.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 (*RegionsListCall) Fields ¶ added in v0.36.0
func (c *RegionsListCall) Fields(s ...googleapi.Field) *RegionsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionsListCall) Header ¶ added in v0.36.0
func (c *RegionsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionsListCall) IfNoneMatch ¶ added in v0.36.0
func (c *RegionsListCall) IfNoneMatch(entityTag string) *RegionsListCall
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 (*RegionsListCall) PageSize ¶ added in v0.36.0
func (c *RegionsListCall) PageSize(pageSize int64) *RegionsListCall
PageSize sets the optional parameter "pageSize": The maximum number of regions to return. The service may return fewer than this value. If unspecified, at most 50 rules will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
func (*RegionsListCall) PageToken ¶ added in v0.36.0
func (c *RegionsListCall) PageToken(pageToken string) *RegionsListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListRegions` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRegions` must match the call that provided the page token.
func (*RegionsListCall) Pages ¶ added in v0.36.0
func (c *RegionsListCall) Pages(ctx context.Context, f func(*ListRegionsResponse) 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 RegionsPatchCall ¶ added in v0.36.0
type RegionsPatchCall struct {
// contains filtered or unexported fields
}
func (*RegionsPatchCall) Context ¶ added in v0.36.0
func (c *RegionsPatchCall) Context(ctx context.Context) *RegionsPatchCall
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 (*RegionsPatchCall) Do ¶ added in v0.36.0
func (c *RegionsPatchCall) Do(opts ...googleapi.CallOption) (*Region, error)
Do executes the "content.regions.patch" call. Exactly one of *Region or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Region.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 (*RegionsPatchCall) Fields ¶ added in v0.36.0
func (c *RegionsPatchCall) Fields(s ...googleapi.Field) *RegionsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RegionsPatchCall) Header ¶ added in v0.36.0
func (c *RegionsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RegionsPatchCall) UpdateMask ¶ added in v0.36.0
func (c *RegionsPatchCall) UpdateMask(updateMask string) *RegionsPatchCall
UpdateMask sets the optional parameter "updateMask": The field mask indicating the fields to update.
type RegionsService ¶ added in v0.36.0
type RegionsService struct {
// contains filtered or unexported fields
}
func NewRegionsService ¶ added in v0.36.0
func NewRegionsService(s *APIService) *RegionsService
func (*RegionsService) Create ¶ added in v0.36.0
func (r *RegionsService) Create(merchantId int64, region *Region) *RegionsCreateCall
Create: Creates a region definition in your Merchant Center account.
func (*RegionsService) Delete ¶ added in v0.36.0
func (r *RegionsService) Delete(merchantId int64, regionId string) *RegionsDeleteCall
Delete: Deletes a region definition from your Merchant Center account.
func (*RegionsService) Get ¶ added in v0.36.0
func (r *RegionsService) Get(merchantId int64, regionId string) *RegionsGetCall
Get: Retrieves a region defined in your Merchant Center account.
func (*RegionsService) List ¶ added in v0.36.0
func (r *RegionsService) List(merchantId int64) *RegionsListCall
List: Lists the regions in your Merchant Center account.
func (*RegionsService) Patch ¶ added in v0.36.0
func (r *RegionsService) Patch(merchantId int64, regionId string, region *Region) *RegionsPatchCall
Patch: Updates a region definition in your Merchant Center account.
type ReportRow ¶ added in v0.41.0
type ReportRow struct { // Metrics: Metrics requested by the merchant in the query. Metric // values are only set for metrics requested explicitly in the query. Metrics *Metrics `json:"metrics,omitempty"` // Segments: Segmentation dimensions requested by the merchant in the // query. Dimension values are only set for dimensions requested // explicitly in the query. Segments *Segments `json:"segments,omitempty"` // ForceSendFields is a list of field names (e.g. "Metrics") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Metrics") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ReportRow: Result row returned from the search query.
func (*ReportRow) MarshalJSON ¶ added in v0.41.0
type ReportsSearchCall ¶ added in v0.41.0
type ReportsSearchCall struct {
// contains filtered or unexported fields
}
func (*ReportsSearchCall) Context ¶ added in v0.41.0
func (c *ReportsSearchCall) Context(ctx context.Context) *ReportsSearchCall
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 (*ReportsSearchCall) Do ¶ added in v0.41.0
func (c *ReportsSearchCall) Do(opts ...googleapi.CallOption) (*SearchResponse, error)
Do executes the "content.reports.search" call. Exactly one of *SearchResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SearchResponse.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 (*ReportsSearchCall) Fields ¶ added in v0.41.0
func (c *ReportsSearchCall) Fields(s ...googleapi.Field) *ReportsSearchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ReportsSearchCall) Header ¶ added in v0.41.0
func (c *ReportsSearchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ReportsSearchCall) Pages ¶ added in v0.41.0
func (c *ReportsSearchCall) Pages(ctx context.Context, f func(*SearchResponse) 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 ReportsService ¶ added in v0.41.0
type ReportsService struct {
// contains filtered or unexported fields
}
func NewReportsService ¶ added in v0.41.0
func NewReportsService(s *APIService) *ReportsService
func (*ReportsService) Search ¶ added in v0.41.0
func (r *ReportsService) Search(merchantId int64, searchrequest *SearchRequest) *ReportsSearchCall
Search: Retrieves merchant performance mertrics matching the search query and optionally segmented by selected dimensions.
type RepricingProductReport ¶ added in v0.37.0
type RepricingProductReport struct { // ApplicationCount: Total count of Repricer applications. This value // captures how many times the rule of this type was applied to this // product during this reporting period. ApplicationCount int64 `json:"applicationCount,omitempty,string"` // BuyboxWinningProductStats: Stats specific to buybox winning rules for // product report. BuyboxWinningProductStats *RepricingProductReportBuyboxWinningProductStats `json:"buyboxWinningProductStats,omitempty"` // Date: Date of the stats in this report. The report starts and ends // according to the merchant's timezone. Date *Date `json:"date,omitempty"` // HighWatermark: Maximum displayed price after repriced during this // reporting period. HighWatermark *PriceAmount `json:"highWatermark,omitempty"` // InapplicabilityDetails: List of all reasons the rule did not apply to // the product during the specified reporting period. InapplicabilityDetails []*InapplicabilityDetails `json:"inapplicabilityDetails,omitempty"` // LowWatermark: Minimum displayed price after repriced during this // reporting period. LowWatermark *PriceAmount `json:"lowWatermark,omitempty"` // OrderItemCount: Total unit count of impacted products ordered while // the rule was active on the date of the report. This count includes // all orders that were started while the rule was active, even if the // rule was no longer active when the order was completed. OrderItemCount int64 `json:"orderItemCount,omitempty"` // RuleIds: Ids of the Repricing rule for this report. RuleIds []string `json:"ruleIds,omitempty"` // TotalGmv: Total GMV generated by impacted products while the rule was // active on the date of the report. This value includes all orders that // were started while the rule was active, even if the rule was no // longer active when the order was completed. TotalGmv *PriceAmount `json:"totalGmv,omitempty"` // Type: Type of the rule. // // Possible values: // "REPRICING_RULE_TYPE_UNSPECIFIED" - Unused. // "TYPE_STATS_BASED" - Statistical measurement based rules among // Google SA merchants. If this rule is chosen, repricer will adjust the // offer price based on statistical metrics (currently only min is // available) among other merchants who sell the same product. Details // need to be provdided in the RuleDefinition. // "TYPE_COGS_BASED" - Cost of goods sale based rule. Repricer will // adjust the offer price based on the offer's sale cost which is // provided by the merchant. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "ApplicationCount") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ApplicationCount") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
RepricingProductReport: Resource that represents a daily Repricing product report. Each report contains stats for a single type of Repricing rule for a single product on a given day. If there are multiple rules of the same type for the product on that day, the report lists all the rules by rule ids, combines the stats, and paginates the results by date. To retrieve the stats of a particular rule, provide the rule_id in the request.
func (*RepricingProductReport) MarshalJSON ¶ added in v0.37.0
func (s *RepricingProductReport) MarshalJSON() ([]byte, error)
type RepricingProductReportBuyboxWinningProductStats ¶ added in v0.37.0
type RepricingProductReportBuyboxWinningProductStats struct { // BuyboxWinsCount: Number of times this product won the buybox with // these rules during this time period. BuyboxWinsCount int64 `json:"buyboxWinsCount,omitempty"` // ForceSendFields is a list of field names (e.g. "BuyboxWinsCount") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BuyboxWinsCount") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
RepricingProductReportBuyboxWinningProductStats: Stats specific to buybox winning rules for product report.
func (*RepricingProductReportBuyboxWinningProductStats) MarshalJSON ¶ added in v0.37.0
func (s *RepricingProductReportBuyboxWinningProductStats) MarshalJSON() ([]byte, error)
type RepricingRule ¶ added in v0.34.0
type RepricingRule struct { // CogsBasedRule: The rule definition for TYPE_COGS_BASED. Required when // the rule type is TYPE_COGS_BASED. CogsBasedRule *RepricingRuleCostOfGoodsSaleRule `json:"cogsBasedRule,omitempty"` // CountryCode: Required. Immutable. CLDR country code // (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) // (e.g. "US"). CountryCode string `json:"countryCode,omitempty"` // EffectiveTimePeriod: Required. Time period when the rule should take // effect. EffectiveTimePeriod *RepricingRuleEffectiveTime `json:"effectiveTimePeriod,omitempty"` // EligibleOfferMatcher: Required. Match criteria for the eligible // offers. EligibleOfferMatcher *RepricingRuleEligibleOfferMatcher `json:"eligibleOfferMatcher,omitempty"` // LanguageCode: Required. Immutable. The two-letter ISO 639-1 language // code associated with the repricing rule. LanguageCode string `json:"languageCode,omitempty"` // MerchantId: Output only. Immutable. Merchant that owns the repricing // rule. MerchantId int64 `json:"merchantId,omitempty,string"` // Paused: Represents whether a rule is paused. A paused rule will // behave like a non-paused rule within CRUD operations, with the major // difference that a paused rule will not be evaluated and will have no // effect on offers. Paused bool `json:"paused,omitempty"` // Restriction: Required. Restriction of the rule appliance. Restriction *RepricingRuleRestriction `json:"restriction,omitempty"` // RuleId: Output only. Immutable. The ID to uniquely identify each // repricing rule. RuleId string `json:"ruleId,omitempty"` // StatsBasedRule: The rule definition for TYPE_STATS_BASED. Required // when the rule type is TYPE_STATS_BASED. StatsBasedRule *RepricingRuleStatsBasedRule `json:"statsBasedRule,omitempty"` // Title: The title for the rule. Title string `json:"title,omitempty"` // Type: Required. Immutable. The type of the rule. // // Possible values: // "REPRICING_RULE_TYPE_UNSPECIFIED" - Unused. // "TYPE_STATS_BASED" - Statistical measurement based rules among // Google SA merchants. If this rule is chosen, repricer will adjust the // offer price based on statistical metrics (currently only min is // available) among other merchants who sell the same product. Details // need to be provdided in the RuleDefinition. // "TYPE_COGS_BASED" - Cost of goods sale based rule. Repricer will // adjust the offer price based on the offer's sale cost which is // provided by the merchant. Type string `json:"type,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CogsBasedRule") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CogsBasedRule") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RepricingRule: Represents a repricing rule. A repricing rule is used by shopping serving to adjust transactable offer prices if conditions are met. Next ID: 24
func (*RepricingRule) MarshalJSON ¶ added in v0.34.0
func (s *RepricingRule) MarshalJSON() ([]byte, error)
type RepricingRuleCostOfGoodsSaleRule ¶ added in v0.37.0
type RepricingRuleCostOfGoodsSaleRule struct { // PercentageDelta: The percent change against the COGS. Ex: 20 would // mean to set the adjusted price 1.2X of the COGS data. PercentageDelta int64 `json:"percentageDelta,omitempty"` // PriceDelta: The price delta against the COGS. E.g. 2 means $2 more of // the COGS. PriceDelta string `json:"priceDelta,omitempty"` // ForceSendFields is a list of field names (e.g. "PercentageDelta") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PercentageDelta") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
RepricingRuleCostOfGoodsSaleRule: A repricing rule that changes the sale price based on cost of goods sale.
func (*RepricingRuleCostOfGoodsSaleRule) MarshalJSON ¶ added in v0.37.0
func (s *RepricingRuleCostOfGoodsSaleRule) MarshalJSON() ([]byte, error)
type RepricingRuleEffectiveTime ¶ added in v0.34.0
type RepricingRuleEffectiveTime struct { // FixedTimePeriods: A list of fixed time periods combined with OR. The // maximum number of entries is limited to 5. FixedTimePeriods []*RepricingRuleEffectiveTimeFixedTimePeriod `json:"fixedTimePeriods,omitempty"` // ForceSendFields is a list of field names (e.g. "FixedTimePeriods") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FixedTimePeriods") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*RepricingRuleEffectiveTime) MarshalJSON ¶ added in v0.34.0
func (s *RepricingRuleEffectiveTime) MarshalJSON() ([]byte, error)
type RepricingRuleEffectiveTimeFixedTimePeriod ¶ added in v0.34.0
type RepricingRuleEffectiveTimeFixedTimePeriod struct { // EndTime: The end time (exclusive) of the period. It can only be hour // granularity. EndTime string `json:"endTime,omitempty"` // StartTime: The start time (inclusive) of the period. It can only be // hour granularity. StartTime string `json:"startTime,omitempty"` // ForceSendFields is a list of field names (e.g. "EndTime") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EndTime") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RepricingRuleEffectiveTimeFixedTimePeriod: Definition of a fixed time period.
func (*RepricingRuleEffectiveTimeFixedTimePeriod) MarshalJSON ¶ added in v0.34.0
func (s *RepricingRuleEffectiveTimeFixedTimePeriod) MarshalJSON() ([]byte, error)
type RepricingRuleEligibleOfferMatcher ¶ added in v0.34.0
type RepricingRuleEligibleOfferMatcher struct { // BrandMatcher: Filter by the brand. BrandMatcher *RepricingRuleEligibleOfferMatcherStringMatcher `json:"brandMatcher,omitempty"` // ItemGroupIdMatcher: Filter by the item group id. ItemGroupIdMatcher *RepricingRuleEligibleOfferMatcherStringMatcher `json:"itemGroupIdMatcher,omitempty"` // MatcherOption: Determines whether to use the custom matchers or the // product feed attribute "repricing_rule_id" to specify offer-rule // mapping. // // Possible values: // "MATCHER_OPTION_UNSPECIFIED" - Unused. // "MATCHER_OPTION_CUSTOM_FILTER" - Use custom filters. // "MATCHER_OPTION_USE_FEED_ATTRIBUTE" - Use repricing_rule_id feed // attribute on the product resource to specify offer-rule mapping. // "MATCHER_OPTION_ALL_PRODUCTS" - Matching all products. MatcherOption string `json:"matcherOption,omitempty"` // OfferIdMatcher: Filter by the offer id. OfferIdMatcher *RepricingRuleEligibleOfferMatcherStringMatcher `json:"offerIdMatcher,omitempty"` // SkipWhenOnPromotion: When true, the rule won't be applied to offers // with active promotions. SkipWhenOnPromotion bool `json:"skipWhenOnPromotion,omitempty"` // ForceSendFields is a list of field names (e.g. "BrandMatcher") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BrandMatcher") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RepricingRuleEligibleOfferMatcher: Matcher that specifies eligible offers. When the USE_FEED_ATTRIBUTE option is selected, only the repricing_rule_id attribute on the product feed is used to specify offer-rule mapping. When the CUSTOM_FILTER option is selected, only the *_matcher fields are used to filter the offers for offer-rule mapping. If the CUSTOM_FILTER option is selected, an offer needs to satisfy each custom filter matcher to be eligible for a rule. Size limit: the sum of the number of entries in all the matchers should not exceed 20. For example, there can be 15 product ids and 5 brands, but not 10 product ids and 11 brands.
func (*RepricingRuleEligibleOfferMatcher) MarshalJSON ¶ added in v0.34.0
func (s *RepricingRuleEligibleOfferMatcher) MarshalJSON() ([]byte, error)
type RepricingRuleEligibleOfferMatcherStringMatcher ¶ added in v0.34.0
type RepricingRuleEligibleOfferMatcherStringMatcher struct { // StrAttributes: String attributes, as long as such attribute of an // offer is one of the string attribute values, the offer is considered // as passing the matcher. The string matcher checks an offer for // inclusivity in the string attributes, not equality. Only literal // string matching is supported, no regex. StrAttributes []string `json:"strAttributes,omitempty"` // ForceSendFields is a list of field names (e.g. "StrAttributes") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "StrAttributes") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RepricingRuleEligibleOfferMatcherStringMatcher: Matcher by string attributes.
func (*RepricingRuleEligibleOfferMatcherStringMatcher) MarshalJSON ¶ added in v0.34.0
func (s *RepricingRuleEligibleOfferMatcherStringMatcher) MarshalJSON() ([]byte, error)
type RepricingRuleReport ¶ added in v0.37.0
type RepricingRuleReport struct { // BuyboxWinningRuleStats: Stats specific to buybox winning rules for // rule report. BuyboxWinningRuleStats *RepricingRuleReportBuyboxWinningRuleStats `json:"buyboxWinningRuleStats,omitempty"` // Date: Date of the stats in this report. The report starts and ends // according to the merchant's timezone. Date *Date `json:"date,omitempty"` // ImpactedProducts: List of product ids that are impacted by this rule // during this reporting period. Out of stock products and products not // searched for by customers are examples of non-impacted products. ImpactedProducts []string `json:"impactedProducts,omitempty"` // InapplicabilityDetails: List of all reasons the rule did not apply to // the inapplicable products during the specified reporting period. InapplicabilityDetails []*InapplicabilityDetails `json:"inapplicabilityDetails,omitempty"` // InapplicableProducts: List of product ids that are inapplicable to // this rule during this reporting period. To get the inapplicable // reason for a specific product, see RepricingProductReport. InapplicableProducts []string `json:"inapplicableProducts,omitempty"` // OrderItemCount: Total unit count of impacted products ordered while // the rule was active on the date of the report. This count includes // all orders that were started while the rule was active, even if the // rule was no longer active when the order was completed. OrderItemCount int64 `json:"orderItemCount,omitempty"` // RuleId: Id of the Repricing rule for this report. RuleId string `json:"ruleId,omitempty"` // TotalGmv: Total GMV generated by impacted products while the rule was // active on the date of the report. This value includes all orders that // were started while the rule was active, even if the rule was no // longer active when the order was completed. TotalGmv *PriceAmount `json:"totalGmv,omitempty"` // Type: Type of the rule. // // Possible values: // "REPRICING_RULE_TYPE_UNSPECIFIED" - Unused. // "TYPE_STATS_BASED" - Statistical measurement based rules among // Google SA merchants. If this rule is chosen, repricer will adjust the // offer price based on statistical metrics (currently only min is // available) among other merchants who sell the same product. Details // need to be provdided in the RuleDefinition. // "TYPE_COGS_BASED" - Cost of goods sale based rule. Repricer will // adjust the offer price based on the offer's sale cost which is // provided by the merchant. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. // "BuyboxWinningRuleStats") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BuyboxWinningRuleStats") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
RepricingRuleReport: Resource that represents a daily Repricing rule report. Next ID: 11
func (*RepricingRuleReport) MarshalJSON ¶ added in v0.37.0
func (s *RepricingRuleReport) MarshalJSON() ([]byte, error)
type RepricingRuleReportBuyboxWinningRuleStats ¶ added in v0.37.0
type RepricingRuleReportBuyboxWinningRuleStats struct { // BuyboxWonProductCount: Number of unique products that won the buybox // with this rule during this period of time. BuyboxWonProductCount int64 `json:"buyboxWonProductCount,omitempty"` // ForceSendFields is a list of field names (e.g. // "BuyboxWonProductCount") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BuyboxWonProductCount") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
RepricingRuleReportBuyboxWinningRuleStats: Stats specific to buybox winning rules for rule report.
func (*RepricingRuleReportBuyboxWinningRuleStats) MarshalJSON ¶ added in v0.37.0
func (s *RepricingRuleReportBuyboxWinningRuleStats) MarshalJSON() ([]byte, error)
type RepricingRuleRestriction ¶ added in v0.34.0
type RepricingRuleRestriction struct { // Floor: The inclusive floor lower bound. The repricing rule only // applies when new price >= floor. Floor *RepricingRuleRestrictionBoundary `json:"floor,omitempty"` // UseAutoPricingMinPrice: If true, use the AUTO_PRICING_MIN_PRICE offer // attribute as the lower bound of the rule. If // use_auto_pricing_min_price is true, then only offers with // `AUTO_PRICING_MIN_PRICE` existing on the offer will get Repricer // treatment, even if a floor value is set on the rule. Also, if // use_auto_pricing_min_price is true, the floor restriction will be // ignored. UseAutoPricingMinPrice bool `json:"useAutoPricingMinPrice,omitempty"` // ForceSendFields is a list of field names (e.g. "Floor") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Floor") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
RepricingRuleRestriction: Definition of a rule restriction. At least one of the following needs to be true: (1) use_auto_pricing_min_price is true (2) floor.price_delta exists (3) floor.percentage_delta exists If floor.price_delta and floor.percentage_delta are both set on a rule, the highest value will be chosen by the Repricer. In other words, for a product with a price of $50, if the `floor.percentage_delta` is "-10" and the floor.price_delta is "-12", the offer price will only be lowered $5 (10% lower than the original offer price).
func (*RepricingRuleRestriction) MarshalJSON ¶ added in v0.34.0
func (s *RepricingRuleRestriction) MarshalJSON() ([]byte, error)
type RepricingRuleRestrictionBoundary ¶ added in v0.34.0
type RepricingRuleRestrictionBoundary struct { // PercentageDelta: The percentage delta relative to the offer selling // price. This field is signed. It must be negative in floor. When it is // used in floor, it should be > -100. For example, if an offer is // selling at $10 and this field is -30 in floor, the repricing rule // only applies if the calculated new price is >= $7. PercentageDelta int64 `json:"percentageDelta,omitempty"` // PriceDelta: The price micros relative to the offer selling price. // This field is signed. It must be negative in floor. For example, if // an offer is selling at $10 and this field is -$2 in floor, the // repricing rule only applies if the calculated new price is >= $8. PriceDelta string `json:"priceDelta,omitempty"` // ForceSendFields is a list of field names (e.g. "PercentageDelta") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PercentageDelta") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
RepricingRuleRestrictionBoundary: Definition of a boundary.
func (*RepricingRuleRestrictionBoundary) MarshalJSON ¶ added in v0.34.0
func (s *RepricingRuleRestrictionBoundary) MarshalJSON() ([]byte, error)
type RepricingRuleStatsBasedRule ¶ added in v0.37.0
type RepricingRuleStatsBasedRule struct { // PercentageDelta: The percent change against the price target. Valid // from 0 to 100 inclusively. PercentageDelta int64 `json:"percentageDelta,omitempty"` // PriceDelta: The price delta against the above price target. A // positive value means the price should be adjusted to be above // statistical measure, and a negative value means below. Currency code // must not be included. PriceDelta string `json:"priceDelta,omitempty"` // ForceSendFields is a list of field names (e.g. "PercentageDelta") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PercentageDelta") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
RepricingRuleStatsBasedRule: Definition of stats based rule.
func (*RepricingRuleStatsBasedRule) MarshalJSON ¶ added in v0.37.0
func (s *RepricingRuleStatsBasedRule) MarshalJSON() ([]byte, error)
type RepricingrulesCreateCall ¶ added in v0.34.0
type RepricingrulesCreateCall struct {
// contains filtered or unexported fields
}
func (*RepricingrulesCreateCall) Context ¶ added in v0.34.0
func (c *RepricingrulesCreateCall) Context(ctx context.Context) *RepricingrulesCreateCall
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 (*RepricingrulesCreateCall) Do ¶ added in v0.34.0
func (c *RepricingrulesCreateCall) Do(opts ...googleapi.CallOption) (*RepricingRule, error)
Do executes the "content.repricingrules.create" call. Exactly one of *RepricingRule or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RepricingRule.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 (*RepricingrulesCreateCall) Fields ¶ added in v0.34.0
func (c *RepricingrulesCreateCall) Fields(s ...googleapi.Field) *RepricingrulesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RepricingrulesCreateCall) Header ¶ added in v0.34.0
func (c *RepricingrulesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RepricingrulesCreateCall) RuleId ¶ added in v0.34.0
func (c *RepricingrulesCreateCall) RuleId(ruleId string) *RepricingrulesCreateCall
RuleId sets the optional parameter "ruleId": Required. The id of the rule to create.
type RepricingrulesDeleteCall ¶ added in v0.34.0
type RepricingrulesDeleteCall struct {
// contains filtered or unexported fields
}
func (*RepricingrulesDeleteCall) Context ¶ added in v0.34.0
func (c *RepricingrulesDeleteCall) Context(ctx context.Context) *RepricingrulesDeleteCall
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 (*RepricingrulesDeleteCall) Do ¶ added in v0.34.0
func (c *RepricingrulesDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "content.repricingrules.delete" call.
func (*RepricingrulesDeleteCall) Fields ¶ added in v0.34.0
func (c *RepricingrulesDeleteCall) Fields(s ...googleapi.Field) *RepricingrulesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RepricingrulesDeleteCall) Header ¶ added in v0.34.0
func (c *RepricingrulesDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type RepricingrulesGetCall ¶ added in v0.34.0
type RepricingrulesGetCall struct {
// contains filtered or unexported fields
}
func (*RepricingrulesGetCall) Context ¶ added in v0.34.0
func (c *RepricingrulesGetCall) Context(ctx context.Context) *RepricingrulesGetCall
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 (*RepricingrulesGetCall) Do ¶ added in v0.34.0
func (c *RepricingrulesGetCall) Do(opts ...googleapi.CallOption) (*RepricingRule, error)
Do executes the "content.repricingrules.get" call. Exactly one of *RepricingRule or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RepricingRule.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 (*RepricingrulesGetCall) Fields ¶ added in v0.34.0
func (c *RepricingrulesGetCall) Fields(s ...googleapi.Field) *RepricingrulesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RepricingrulesGetCall) Header ¶ added in v0.34.0
func (c *RepricingrulesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RepricingrulesGetCall) IfNoneMatch ¶ added in v0.34.0
func (c *RepricingrulesGetCall) IfNoneMatch(entityTag string) *RepricingrulesGetCall
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 RepricingrulesListCall ¶ added in v0.34.0
type RepricingrulesListCall struct {
// contains filtered or unexported fields
}
func (*RepricingrulesListCall) Context ¶ added in v0.34.0
func (c *RepricingrulesListCall) Context(ctx context.Context) *RepricingrulesListCall
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 (*RepricingrulesListCall) CountryCode ¶ added in v0.34.0
func (c *RepricingrulesListCall) CountryCode(countryCode string) *RepricingrulesListCall
CountryCode sets the optional parameter "countryCode": CLDR country code (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) (e.g. "US"), used as a filter on repricing rules.
func (*RepricingrulesListCall) Do ¶ added in v0.34.0
func (c *RepricingrulesListCall) Do(opts ...googleapi.CallOption) (*ListRepricingRulesResponse, error)
Do executes the "content.repricingrules.list" call. Exactly one of *ListRepricingRulesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListRepricingRulesResponse.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 (*RepricingrulesListCall) Fields ¶ added in v0.34.0
func (c *RepricingrulesListCall) Fields(s ...googleapi.Field) *RepricingrulesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RepricingrulesListCall) Header ¶ added in v0.34.0
func (c *RepricingrulesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RepricingrulesListCall) IfNoneMatch ¶ added in v0.34.0
func (c *RepricingrulesListCall) IfNoneMatch(entityTag string) *RepricingrulesListCall
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 (*RepricingrulesListCall) LanguageCode ¶ added in v0.34.0
func (c *RepricingrulesListCall) LanguageCode(languageCode string) *RepricingrulesListCall
LanguageCode sets the optional parameter "languageCode": The two-letter ISO 639-1 language code associated with the repricing rule, used as a filter.
func (*RepricingrulesListCall) PageSize ¶ added in v0.34.0
func (c *RepricingrulesListCall) PageSize(pageSize int64) *RepricingrulesListCall
PageSize sets the optional parameter "pageSize": The maximum number of repricing rules to return. The service may return fewer than this value. If unspecified, at most 50 rules will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
func (*RepricingrulesListCall) PageToken ¶ added in v0.34.0
func (c *RepricingrulesListCall) PageToken(pageToken string) *RepricingrulesListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListRepricingRules` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRepricingRules` must match the call that provided the page token.
func (*RepricingrulesListCall) Pages ¶ added in v0.34.0
func (c *RepricingrulesListCall) Pages(ctx context.Context, f func(*ListRepricingRulesResponse) 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 RepricingrulesPatchCall ¶ added in v0.34.0
type RepricingrulesPatchCall struct {
// contains filtered or unexported fields
}
func (*RepricingrulesPatchCall) Context ¶ added in v0.34.0
func (c *RepricingrulesPatchCall) Context(ctx context.Context) *RepricingrulesPatchCall
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 (*RepricingrulesPatchCall) Do ¶ added in v0.34.0
func (c *RepricingrulesPatchCall) Do(opts ...googleapi.CallOption) (*RepricingRule, error)
Do executes the "content.repricingrules.patch" call. Exactly one of *RepricingRule or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RepricingRule.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 (*RepricingrulesPatchCall) Fields ¶ added in v0.34.0
func (c *RepricingrulesPatchCall) Fields(s ...googleapi.Field) *RepricingrulesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RepricingrulesPatchCall) Header ¶ added in v0.34.0
func (c *RepricingrulesPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type RepricingrulesRepricingreportsListCall ¶ added in v0.37.0
type RepricingrulesRepricingreportsListCall struct {
// contains filtered or unexported fields
}
func (*RepricingrulesRepricingreportsListCall) Context ¶ added in v0.37.0
func (c *RepricingrulesRepricingreportsListCall) Context(ctx context.Context) *RepricingrulesRepricingreportsListCall
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 (*RepricingrulesRepricingreportsListCall) Do ¶ added in v0.37.0
func (c *RepricingrulesRepricingreportsListCall) Do(opts ...googleapi.CallOption) (*ListRepricingRuleReportsResponse, error)
Do executes the "content.repricingrules.repricingreports.list" call. Exactly one of *ListRepricingRuleReportsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListRepricingRuleReportsResponse.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 (*RepricingrulesRepricingreportsListCall) EndDate ¶ added in v0.37.0
func (c *RepricingrulesRepricingreportsListCall) EndDate(endDate string) *RepricingrulesRepricingreportsListCall
EndDate sets the optional parameter "endDate": Gets Repricing reports on and before this date in the merchant's timezone. You can only retrieve data up to 7 days ago (default) or earlier. Format: YYYY-MM-DD.
func (*RepricingrulesRepricingreportsListCall) Fields ¶ added in v0.37.0
func (c *RepricingrulesRepricingreportsListCall) Fields(s ...googleapi.Field) *RepricingrulesRepricingreportsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*RepricingrulesRepricingreportsListCall) Header ¶ added in v0.37.0
func (c *RepricingrulesRepricingreportsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*RepricingrulesRepricingreportsListCall) IfNoneMatch ¶ added in v0.37.0
func (c *RepricingrulesRepricingreportsListCall) IfNoneMatch(entityTag string) *RepricingrulesRepricingreportsListCall
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 (*RepricingrulesRepricingreportsListCall) PageSize ¶ added in v0.37.0
func (c *RepricingrulesRepricingreportsListCall) PageSize(pageSize int64) *RepricingrulesRepricingreportsListCall
PageSize sets the optional parameter "pageSize": Maximum number of daily reports to return. Each report includes data from a single 24-hour period. The page size defaults to 50 and values above 1000 are coerced to 1000. This service may return fewer days than this value, for example, if the time between your start and end date is less than page size.
func (*RepricingrulesRepricingreportsListCall) PageToken ¶ added in v0.37.0
func (c *RepricingrulesRepricingreportsListCall) PageToken(pageToken string) *RepricingrulesRepricingreportsListCall
PageToken sets the optional parameter "pageToken": Token (if provided) to retrieve the subsequent page. All other parameters must match the original call that provided the page token.
func (*RepricingrulesRepricingreportsListCall) Pages ¶ added in v0.37.0
func (c *RepricingrulesRepricingreportsListCall) Pages(ctx context.Context, f func(*ListRepricingRuleReportsResponse) 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 (*RepricingrulesRepricingreportsListCall) StartDate ¶ added in v0.37.0
func (c *RepricingrulesRepricingreportsListCall) StartDate(startDate string) *RepricingrulesRepricingreportsListCall
StartDate sets the optional parameter "startDate": Gets Repricing reports on and after this date in the merchant's timezone, up to one year ago. Do not use a start date later than 7 days ago (default). Format: YYYY-MM-DD.
type RepricingrulesRepricingreportsService ¶ added in v0.37.0
type RepricingrulesRepricingreportsService struct {
// contains filtered or unexported fields
}
func NewRepricingrulesRepricingreportsService ¶ added in v0.37.0
func NewRepricingrulesRepricingreportsService(s *APIService) *RepricingrulesRepricingreportsService
func (*RepricingrulesRepricingreportsService) List ¶ added in v0.37.0
func (r *RepricingrulesRepricingreportsService) List(merchantId int64, ruleId string) *RepricingrulesRepricingreportsListCall
List: Lists the metrics report for a given Repricing rule.
type RepricingrulesService ¶ added in v0.34.0
type RepricingrulesService struct { Repricingreports *RepricingrulesRepricingreportsService // contains filtered or unexported fields }
func NewRepricingrulesService ¶ added in v0.34.0
func NewRepricingrulesService(s *APIService) *RepricingrulesService
func (*RepricingrulesService) Create ¶ added in v0.34.0
func (r *RepricingrulesService) Create(merchantId int64, repricingrule *RepricingRule) *RepricingrulesCreateCall
Create: Creates a repricing rule for your Merchant Center account.
func (*RepricingrulesService) Delete ¶ added in v0.34.0
func (r *RepricingrulesService) Delete(merchantId int64, ruleId string) *RepricingrulesDeleteCall
Delete: Deletes a repricing rule in your Merchant Center account.
func (*RepricingrulesService) Get ¶ added in v0.34.0
func (r *RepricingrulesService) Get(merchantId int64, ruleId string) *RepricingrulesGetCall
Get: Retrieves a repricing rule from your Merchant Center account.
func (*RepricingrulesService) List ¶ added in v0.34.0
func (r *RepricingrulesService) List(merchantId int64) *RepricingrulesListCall
List: Lists the repricing rules in your Merchant Center account.
func (*RepricingrulesService) Patch ¶ added in v0.34.0
func (r *RepricingrulesService) Patch(merchantId int64, ruleId string, repricingrule *RepricingRule) *RepricingrulesPatchCall
Patch: Updates a repricing rule in your Merchant Center account. All mutable fields will be overwritten in each update request. In each update, you must provide all required mutable fields, or an error will be thrown. If you do not provide an optional field in the update request, if that field currently exists, it will be deleted from the rule.
type ReturnAddress ¶ added in v0.9.0
type ReturnAddress struct { // Address: Required. The address. Address *ReturnAddressAddress `json:"address,omitempty"` // Country: Required. The country of sale where the return address is // applicable. Country string `json:"country,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#returnAddress" Kind string `json:"kind,omitempty"` // Label: Required. The user-defined label of the return address. For // the default address, use the label "default". Label string `json:"label,omitempty"` // PhoneNumber: Required. The merchant's contact phone number regarding // the return. PhoneNumber string `json:"phoneNumber,omitempty"` // ReturnAddressId: Return address ID generated by Google. ReturnAddressId string `json:"returnAddressId,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // 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:"-"` }
ReturnAddress: Return address resource.
func (*ReturnAddress) MarshalJSON ¶ added in v0.9.0
func (s *ReturnAddress) MarshalJSON() ([]byte, error)
type ReturnAddressAddress ¶ added in v0.9.0
type ReturnAddressAddress struct { // Country: CLDR country code (e.g. "US"). Country string `json:"country,omitempty"` // Locality: City, town or commune. May also include dependent // localities or sublocalities (e.g. neighborhoods or suburbs). Locality string `json:"locality,omitempty"` // PostalCode: Postal code or ZIP (e.g. "94043"). PostalCode string `json:"postalCode,omitempty"` // RecipientName: Name of the recipient to address returns to. RecipientName string `json:"recipientName,omitempty"` // Region: Top-level administrative subdivision of the country. For // example, a state like California ("CA") or a province like Quebec // ("QC"). Region string `json:"region,omitempty"` // StreetAddress: Street-level part of the address. May be up to two // lines, each line specified as an array element. 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 (*ReturnAddressAddress) MarshalJSON ¶ added in v0.9.0
func (s *ReturnAddressAddress) MarshalJSON() ([]byte, error)
type ReturnPolicy ¶ added in v0.9.0
type ReturnPolicy struct { // Country: Required. The country of sale where the return policy is // applicable. Country string `json:"country,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#returnPolicy" Kind string `json:"kind,omitempty"` // Label: Required. The user-defined label of the return policy. For the // default policy, use the label "default". Label string `json:"label,omitempty"` // Name: Required. The name of the policy as shown in Merchant Center. Name string `json:"name,omitempty"` // NonFreeReturnReasons: Return reasons that will incur return fees. NonFreeReturnReasons []string `json:"nonFreeReturnReasons,omitempty"` // Policy: Required. The policy. Policy *ReturnPolicyPolicy `json:"policy,omitempty"` // ReturnPolicyId: Return policy ID generated by Google. ReturnPolicyId string `json:"returnPolicyId,omitempty"` // ReturnShippingFee: The return shipping fee that will apply to non // free return reasons. ReturnShippingFee *Price `json:"returnShippingFee,omitempty"` // SeasonalOverrides: An optional list of seasonal overrides. SeasonalOverrides []*ReturnPolicySeasonalOverride `json:"seasonalOverrides,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Country") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Country") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ReturnPolicy: Return policy resource.
func (*ReturnPolicy) MarshalJSON ¶ added in v0.9.0
func (s *ReturnPolicy) MarshalJSON() ([]byte, error)
type ReturnPolicyOnline ¶ added in v0.41.0
type ReturnPolicyOnline struct { // Countries: The countries of sale where the return policy is // applicable. The values must be a valid 2 letter ISO 3166 code, e.g. // "US". Countries []string `json:"countries,omitempty"` // ItemConditions: The item conditions that are accepted for returns. // This is required to not be empty unless the type of return policy is // noReturns. // // Possible values: // "ITEM_CONDITION_UNSPECIFIED" - Default value. This value is unused. // "NEW" - New. // "USED" - Used. ItemConditions []string `json:"itemConditions,omitempty"` // Label: The unique user-defined label of the return policy. The same // label cannot be used in different return policies for the same // country. Policies with the label 'default' will apply to all // products, unless a product specifies a return_policy_label attribute. Label string `json:"label,omitempty"` // Name: The name of the policy as shown in Merchant Center. Name string `json:"name,omitempty"` // Policy: The return policy. Policy *ReturnPolicyOnlinePolicy `json:"policy,omitempty"` // RestockingFee: The restocking fee that applies to all return reason // categories. This would be treated as a free restocking fee if the // value is not set. RestockingFee *ReturnPolicyOnlineRestockingFee `json:"restockingFee,omitempty"` // ReturnMethods: The return methods of how customers can return an // item. This value is required to not be empty unless the type of // return policy is noReturns. // // Possible values: // "RETURN_METHOD_UNSPECIFIED" - Default value. This value is unused. // "BY_MAIL" - By mail. // "IN_STORE" - In store. // "AT_A_KIOSK" - At a kiosk. ReturnMethods []string `json:"returnMethods,omitempty"` // ReturnPolicyId: Output only. Return policy ID generated by Google. ReturnPolicyId string `json:"returnPolicyId,omitempty"` // ReturnPolicyUri: The return policy uri. This can used by Google to do // a sanity check for the policy. ReturnPolicyUri string `json:"returnPolicyUri,omitempty"` // ReturnReasonCategoryInfo: The return reason category information. // This required to not be empty unless the type of return policy is // noReturns. ReturnReasonCategoryInfo []*ReturnPolicyOnlineReturnReasonCategoryInfo `json:"returnReasonCategoryInfo,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Countries") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Countries") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ReturnPolicyOnline: Return policy online object. This is currently used to represent return policies for ads and free listings programs.
func (*ReturnPolicyOnline) MarshalJSON ¶ added in v0.41.0
func (s *ReturnPolicyOnline) MarshalJSON() ([]byte, error)
type ReturnPolicyOnlinePolicy ¶ added in v0.41.0
type ReturnPolicyOnlinePolicy struct { // Days: The number of days items can be returned after delivery, where // one day is defined to be 24 hours after the delivery timestamp. // Required for `numberOfDaysAfterDelivery` returns. Days int64 `json:"days,omitempty,string"` // Type: Policy type. // // Possible values: // "TYPE_UNSPECIFIED" - Default value. This value is unused. // "NUMBER_OF_DAYS_AFTER_DELIVERY" - Number of days after a return is // delivered. // "NO_RETURNS" - No returns. // "LIFETIME_RETURNS" - Life time returns. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Days") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Days") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ReturnPolicyOnlinePolicy: The available policies.
func (*ReturnPolicyOnlinePolicy) MarshalJSON ¶ added in v0.41.0
func (s *ReturnPolicyOnlinePolicy) MarshalJSON() ([]byte, error)
type ReturnPolicyOnlineRestockingFee ¶ added in v0.41.0
type ReturnPolicyOnlineRestockingFee struct { // FixedFee: Fixed restocking fee. FixedFee *PriceAmount `json:"fixedFee,omitempty"` // MicroPercent: Percent of total price in micros. 15,000,000 means 15% // of the total price would be charged. MicroPercent int64 `json:"microPercent,omitempty"` // ForceSendFields is a list of field names (e.g. "FixedFee") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FixedFee") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ReturnPolicyOnlineRestockingFee: The restocking fee. This can either be a fixed fee or a micro percent.
func (*ReturnPolicyOnlineRestockingFee) MarshalJSON ¶ added in v0.41.0
func (s *ReturnPolicyOnlineRestockingFee) MarshalJSON() ([]byte, error)
type ReturnPolicyOnlineReturnReasonCategoryInfo ¶ added in v0.41.0
type ReturnPolicyOnlineReturnReasonCategoryInfo struct { // ReturnLabelSource: The corresponding return label source. // // Possible values: // "RETURN_LABEL_SOURCE_UNSPECIFIED" - Default value. This value is // unused. // "DOWNLOAD_AND_PRINT" - Download and print the label. // "IN_THE_BOX" - Label in the box. // "CUSTOMER_RESPONSIBILITY" - Customers' responsibility to get the // label. ReturnLabelSource string `json:"returnLabelSource,omitempty"` // ReturnReasonCategory: The return reason category. // // Possible values: // "RETURN_REASON_CATEGORY_UNSPECIFIED" - Default value. This value is // unused. // "BUYER_REMORSE" - Buyer remorse. // "ITEM_DEFECT" - Item defect. ReturnReasonCategory string `json:"returnReasonCategory,omitempty"` // ReturnShippingFee: The corresponding return shipping fee. This is // only applicable when returnLabelSource is not the customer's // responsibility. ReturnShippingFee *ReturnPolicyOnlineReturnShippingFee `json:"returnShippingFee,omitempty"` // ForceSendFields is a list of field names (e.g. "ReturnLabelSource") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ReturnLabelSource") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ReturnPolicyOnlineReturnReasonCategoryInfo: The return reason category info wrapper.
func (*ReturnPolicyOnlineReturnReasonCategoryInfo) MarshalJSON ¶ added in v0.41.0
func (s *ReturnPolicyOnlineReturnReasonCategoryInfo) MarshalJSON() ([]byte, error)
type ReturnPolicyOnlineReturnShippingFee ¶ added in v0.41.0
type ReturnPolicyOnlineReturnShippingFee struct { // FixedFee: Fixed return shipping fee amount. This value is only // applicable when type is FIXED. We will treat the return shipping fee // as free if type is FIXED and this value is not set. FixedFee *PriceAmount `json:"fixedFee,omitempty"` // Type: Type of return shipping fee. // // Possible values: // "TYPE_UNSPECIFIED" - Default value. This value is unused. // "FIXED" - The return shipping fee is a fixed value. // "CUSTOMER_PAYING_ACTUAL_FEE" - Customer will pay the actual return // shipping fee. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "FixedFee") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "FixedFee") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ReturnPolicyOnlineReturnShippingFee: The return shipping fee. This can either be a fixed fee or a boolean to indicate that the customer pays the actual shipping cost.
func (*ReturnPolicyOnlineReturnShippingFee) MarshalJSON ¶ added in v0.41.0
func (s *ReturnPolicyOnlineReturnShippingFee) MarshalJSON() ([]byte, error)
type ReturnPolicyPolicy ¶ added in v0.9.0
type ReturnPolicyPolicy struct { // LastReturnDate: Required. Last day for returning the items. In ISO // 8601 format. When specifying the return window like this, set the // policy type to "lastReturnDate". Use this for seasonal overrides // only. LastReturnDate string `json:"lastReturnDate,omitempty"` // NumberOfDays: The number of days items can be returned after // delivery, where one day is defined to be 24 hours after the delivery // timestamp. When specifying the return window like this, set the // policy type to "numberOfDaysAfterDelivery". Acceptable values are 30, // 45, 60, 90, 100, 180, 270 and 365 for the default policy. Additional // policies further allow 14, 15, 21 and 28 days, but note that for most // items a minimum of 30 days is required for returns. Exceptions may be // made for electronics. A policy of less than 30 days can only be // applied to those items. NumberOfDays int64 `json:"numberOfDays,omitempty,string"` // Type: Policy type. Use "lastReturnDate" for seasonal overrides only. // Note that for most items a minimum of 30 days is required for // returns. Exceptions may be made for electronics or non-returnable // items such as food, perishables, and living things. A policy of less // than 30 days can only be applied to those items. Acceptable values // are: - "lastReturnDate" - "lifetimeReturns" - "noReturns" - // "numberOfDaysAfterDelivery" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "LastReturnDate") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LastReturnDate") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*ReturnPolicyPolicy) MarshalJSON ¶ added in v0.9.0
func (s *ReturnPolicyPolicy) MarshalJSON() ([]byte, error)
type ReturnPolicySeasonalOverride ¶ added in v0.9.0
type ReturnPolicySeasonalOverride struct { // EndDate: Required. Last day on which the override applies. In ISO // 8601 format. EndDate string `json:"endDate,omitempty"` // Name: Required. The name of the seasonal override as shown in // Merchant Center. Name string `json:"name,omitempty"` // Policy: Required. The policy which is in effect during that time. Policy *ReturnPolicyPolicy `json:"policy,omitempty"` // StartDate: Required. First day on which the override applies. In ISO // 8601 format. StartDate string `json:"startDate,omitempty"` // ForceSendFields is a list of field names (e.g. "EndDate") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EndDate") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ReturnPolicySeasonalOverride) MarshalJSON ¶ added in v0.9.0
func (s *ReturnPolicySeasonalOverride) MarshalJSON() ([]byte, error)
type ReturnPricingInfo ¶ added in v0.23.0
type ReturnPricingInfo struct { // ChargeReturnShippingFee: Default option for whether merchant should // charge the customer for return shipping costs, based on customer // selected return reason and merchant's return policy for the items // being returned. ChargeReturnShippingFee bool `json:"chargeReturnShippingFee,omitempty"` // MaxReturnShippingFee: Maximum return shipping costs that may be // charged to the customer depending on merchant's assessment of the // return reason and the merchant's return policy for the items being // returned. MaxReturnShippingFee *MonetaryAmount `json:"maxReturnShippingFee,omitempty"` // RefundableItemsTotalAmount: Total amount that can be refunded for the // items in this return. It represents the total amount received by the // merchant for the items, after applying merchant coupons. RefundableItemsTotalAmount *MonetaryAmount `json:"refundableItemsTotalAmount,omitempty"` // RefundableShippingAmount: Maximum amount that can be refunded for the // original shipping fee. RefundableShippingAmount *MonetaryAmount `json:"refundableShippingAmount,omitempty"` // TotalRefundedAmount: Total amount already refunded by the merchant. // It includes all types of refunds (items, shipping, etc.) Not provided // if no refund has been applied yet. TotalRefundedAmount *MonetaryAmount `json:"totalRefundedAmount,omitempty"` // ForceSendFields is a list of field names (e.g. // "ChargeReturnShippingFee") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ChargeReturnShippingFee") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*ReturnPricingInfo) MarshalJSON ¶ added in v0.23.0
func (s *ReturnPricingInfo) MarshalJSON() ([]byte, error)
type ReturnShipment ¶
type ReturnShipment struct { // CreationDate: The date of creation of the shipment, in ISO 8601 // format. CreationDate string `json:"creationDate,omitempty"` // DeliveryDate: The date of delivery of the shipment, in ISO 8601 // format. DeliveryDate string `json:"deliveryDate,omitempty"` // ReturnMethodType: Type of the return method. Acceptable values are: - // "byMail" - "contactCustomerSupport" - "returnless" - // "inStore" ReturnMethodType string `json:"returnMethodType,omitempty"` // ShipmentId: Shipment ID generated by Google. ShipmentId string `json:"shipmentId,omitempty"` // ShipmentTrackingInfos: Tracking information of the shipment. One // return shipment might be handled by several shipping carriers // sequentially. ShipmentTrackingInfos []*ShipmentTrackingInfo `json:"shipmentTrackingInfos,omitempty"` // ShippingDate: The date of shipping of the shipment, in ISO 8601 // format. ShippingDate string `json:"shippingDate,omitempty"` // State: State of the shipment. Acceptable values are: - "completed" // - "new" - "shipped" - "undeliverable" - "pending" State string `json:"state,omitempty"` // 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 (*ReturnShipment) MarshalJSON ¶
func (s *ReturnShipment) MarshalJSON() ([]byte, error)
type ReturnaddressCustomBatchRequest ¶ added in v0.9.0
type ReturnaddressCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*ReturnaddressCustomBatchRequestEntry `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 (*ReturnaddressCustomBatchRequest) MarshalJSON ¶ added in v0.9.0
func (s *ReturnaddressCustomBatchRequest) MarshalJSON() ([]byte, error)
type ReturnaddressCustomBatchRequestEntry ¶ added in v0.9.0
type ReturnaddressCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // MerchantId: The Merchant Center account ID. MerchantId uint64 `json:"merchantId,omitempty,string"` // Method: Method of the batch request entry. Acceptable values are: - // "delete" - "get" - "insert" Method string `json:"method,omitempty"` // ReturnAddress: The return address to submit. This should be set only // if the method is `insert`. ReturnAddress *ReturnAddress `json:"returnAddress,omitempty"` // ReturnAddressId: The return address ID. This should be set only if // the method is `delete` or `get`. ReturnAddressId string `json:"returnAddressId,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 (*ReturnaddressCustomBatchRequestEntry) MarshalJSON ¶ added in v0.9.0
func (s *ReturnaddressCustomBatchRequestEntry) MarshalJSON() ([]byte, error)
type ReturnaddressCustomBatchResponse ¶ added in v0.9.0
type ReturnaddressCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*ReturnaddressCustomBatchResponseEntry `json:"entries,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#returnaddressCustomBatchResponse". 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 (*ReturnaddressCustomBatchResponse) MarshalJSON ¶ added in v0.9.0
func (s *ReturnaddressCustomBatchResponse) MarshalJSON() ([]byte, error)
type ReturnaddressCustomBatchResponseEntry ¶ added in v0.9.0
type ReturnaddressCustomBatchResponseEntry 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#returnaddressCustomBatchResponseEntry" Kind string `json:"kind,omitempty"` // ReturnAddress: The retrieved return address. ReturnAddress *ReturnAddress `json:"returnAddress,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 (*ReturnaddressCustomBatchResponseEntry) MarshalJSON ¶ added in v0.9.0
func (s *ReturnaddressCustomBatchResponseEntry) MarshalJSON() ([]byte, error)
type ReturnaddressCustombatchCall ¶ added in v0.9.0
type ReturnaddressCustombatchCall struct {
// contains filtered or unexported fields
}
func (*ReturnaddressCustombatchCall) Context ¶ added in v0.9.0
func (c *ReturnaddressCustombatchCall) Context(ctx context.Context) *ReturnaddressCustombatchCall
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 (*ReturnaddressCustombatchCall) Do ¶ added in v0.9.0
func (c *ReturnaddressCustombatchCall) Do(opts ...googleapi.CallOption) (*ReturnaddressCustomBatchResponse, error)
Do executes the "content.returnaddress.custombatch" call. Exactly one of *ReturnaddressCustomBatchResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ReturnaddressCustomBatchResponse.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 (*ReturnaddressCustombatchCall) Fields ¶ added in v0.9.0
func (c *ReturnaddressCustombatchCall) Fields(s ...googleapi.Field) *ReturnaddressCustombatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ReturnaddressCustombatchCall) Header ¶ added in v0.9.0
func (c *ReturnaddressCustombatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ReturnaddressDeleteCall ¶ added in v0.9.0
type ReturnaddressDeleteCall struct {
// contains filtered or unexported fields
}
func (*ReturnaddressDeleteCall) Context ¶ added in v0.9.0
func (c *ReturnaddressDeleteCall) Context(ctx context.Context) *ReturnaddressDeleteCall
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 (*ReturnaddressDeleteCall) Do ¶ added in v0.9.0
func (c *ReturnaddressDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "content.returnaddress.delete" call.
func (*ReturnaddressDeleteCall) Fields ¶ added in v0.9.0
func (c *ReturnaddressDeleteCall) Fields(s ...googleapi.Field) *ReturnaddressDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ReturnaddressDeleteCall) Header ¶ added in v0.9.0
func (c *ReturnaddressDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ReturnaddressGetCall ¶ added in v0.9.0
type ReturnaddressGetCall struct {
// contains filtered or unexported fields
}
func (*ReturnaddressGetCall) Context ¶ added in v0.9.0
func (c *ReturnaddressGetCall) Context(ctx context.Context) *ReturnaddressGetCall
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 (*ReturnaddressGetCall) Do ¶ added in v0.9.0
func (c *ReturnaddressGetCall) Do(opts ...googleapi.CallOption) (*ReturnAddress, error)
Do executes the "content.returnaddress.get" call. Exactly one of *ReturnAddress or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ReturnAddress.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 (*ReturnaddressGetCall) Fields ¶ added in v0.9.0
func (c *ReturnaddressGetCall) Fields(s ...googleapi.Field) *ReturnaddressGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ReturnaddressGetCall) Header ¶ added in v0.9.0
func (c *ReturnaddressGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ReturnaddressGetCall) IfNoneMatch ¶ added in v0.9.0
func (c *ReturnaddressGetCall) IfNoneMatch(entityTag string) *ReturnaddressGetCall
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 ReturnaddressInsertCall ¶ added in v0.9.0
type ReturnaddressInsertCall struct {
// contains filtered or unexported fields
}
func (*ReturnaddressInsertCall) Context ¶ added in v0.9.0
func (c *ReturnaddressInsertCall) Context(ctx context.Context) *ReturnaddressInsertCall
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 (*ReturnaddressInsertCall) Do ¶ added in v0.9.0
func (c *ReturnaddressInsertCall) Do(opts ...googleapi.CallOption) (*ReturnAddress, error)
Do executes the "content.returnaddress.insert" call. Exactly one of *ReturnAddress or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ReturnAddress.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 (*ReturnaddressInsertCall) Fields ¶ added in v0.9.0
func (c *ReturnaddressInsertCall) Fields(s ...googleapi.Field) *ReturnaddressInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ReturnaddressInsertCall) Header ¶ added in v0.9.0
func (c *ReturnaddressInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ReturnaddressListCall ¶ added in v0.9.0
type ReturnaddressListCall struct {
// contains filtered or unexported fields
}
func (*ReturnaddressListCall) Context ¶ added in v0.9.0
func (c *ReturnaddressListCall) Context(ctx context.Context) *ReturnaddressListCall
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 (*ReturnaddressListCall) Country ¶ added in v0.9.0
func (c *ReturnaddressListCall) Country(country string) *ReturnaddressListCall
Country sets the optional parameter "country": List only return addresses applicable to the given country of sale. When omitted, all return addresses are listed.
func (*ReturnaddressListCall) Do ¶ added in v0.9.0
func (c *ReturnaddressListCall) Do(opts ...googleapi.CallOption) (*ReturnaddressListResponse, error)
Do executes the "content.returnaddress.list" call. Exactly one of *ReturnaddressListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ReturnaddressListResponse.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 (*ReturnaddressListCall) Fields ¶ added in v0.9.0
func (c *ReturnaddressListCall) Fields(s ...googleapi.Field) *ReturnaddressListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ReturnaddressListCall) Header ¶ added in v0.9.0
func (c *ReturnaddressListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ReturnaddressListCall) IfNoneMatch ¶ added in v0.9.0
func (c *ReturnaddressListCall) IfNoneMatch(entityTag string) *ReturnaddressListCall
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 (*ReturnaddressListCall) MaxResults ¶ added in v0.9.0
func (c *ReturnaddressListCall) MaxResults(maxResults int64) *ReturnaddressListCall
MaxResults sets the optional parameter "maxResults": The maximum number of addresses in the response, used for paging.
func (*ReturnaddressListCall) PageToken ¶ added in v0.9.0
func (c *ReturnaddressListCall) PageToken(pageToken string) *ReturnaddressListCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
func (*ReturnaddressListCall) Pages ¶ added in v0.9.0
func (c *ReturnaddressListCall) Pages(ctx context.Context, f func(*ReturnaddressListResponse) 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 ReturnaddressListResponse ¶ added in v0.9.0
type ReturnaddressListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#returnaddressListResponse". Kind string `json:"kind,omitempty"` // NextPageToken: The token for the retrieval of the next page of // addresses. NextPageToken string `json:"nextPageToken,omitempty"` Resources []*ReturnAddress `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 (*ReturnaddressListResponse) MarshalJSON ¶ added in v0.9.0
func (s *ReturnaddressListResponse) MarshalJSON() ([]byte, error)
type ReturnaddressService ¶ added in v0.9.0
type ReturnaddressService struct {
// contains filtered or unexported fields
}
func NewReturnaddressService ¶ added in v0.9.0
func NewReturnaddressService(s *APIService) *ReturnaddressService
func (*ReturnaddressService) Custombatch ¶ added in v0.9.0
func (r *ReturnaddressService) Custombatch(returnaddresscustombatchrequest *ReturnaddressCustomBatchRequest) *ReturnaddressCustombatchCall
Custombatch: Batches multiple return address related calls in a single request.
func (*ReturnaddressService) Delete ¶ added in v0.9.0
func (r *ReturnaddressService) Delete(merchantId uint64, returnAddressId string) *ReturnaddressDeleteCall
Delete: Deletes a return address for the given Merchant Center account.
func (*ReturnaddressService) Get ¶ added in v0.9.0
func (r *ReturnaddressService) Get(merchantId uint64, returnAddressId string) *ReturnaddressGetCall
Get: Gets a return address of the Merchant Center account.
func (*ReturnaddressService) Insert ¶ added in v0.9.0
func (r *ReturnaddressService) Insert(merchantId uint64, returnaddress *ReturnAddress) *ReturnaddressInsertCall
Insert: Inserts a return address for the Merchant Center account.
func (*ReturnaddressService) List ¶ added in v0.9.0
func (r *ReturnaddressService) List(merchantId uint64) *ReturnaddressListCall
List: Lists the return addresses of the Merchant Center account.
type ReturnpolicyCustomBatchRequest ¶ added in v0.9.0
type ReturnpolicyCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*ReturnpolicyCustomBatchRequestEntry `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 (*ReturnpolicyCustomBatchRequest) MarshalJSON ¶ added in v0.9.0
func (s *ReturnpolicyCustomBatchRequest) MarshalJSON() ([]byte, error)
type ReturnpolicyCustomBatchRequestEntry ¶ added in v0.9.0
type ReturnpolicyCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // MerchantId: The Merchant Center account ID. MerchantId uint64 `json:"merchantId,omitempty,string"` // Method: Method of the batch request entry. Acceptable values are: - // "delete" - "get" - "insert" Method string `json:"method,omitempty"` // ReturnPolicy: The return policy to submit. This should be set only if // the method is `insert`. ReturnPolicy *ReturnPolicy `json:"returnPolicy,omitempty"` // ReturnPolicyId: The return policy ID. This should be set only if the // method is `delete` or `get`. ReturnPolicyId string `json:"returnPolicyId,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 (*ReturnpolicyCustomBatchRequestEntry) MarshalJSON ¶ added in v0.9.0
func (s *ReturnpolicyCustomBatchRequestEntry) MarshalJSON() ([]byte, error)
type ReturnpolicyCustomBatchResponse ¶ added in v0.9.0
type ReturnpolicyCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*ReturnpolicyCustomBatchResponseEntry `json:"entries,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#returnpolicyCustomBatchResponse". 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 (*ReturnpolicyCustomBatchResponse) MarshalJSON ¶ added in v0.9.0
func (s *ReturnpolicyCustomBatchResponse) MarshalJSON() ([]byte, error)
type ReturnpolicyCustomBatchResponseEntry ¶ added in v0.9.0
type ReturnpolicyCustomBatchResponseEntry 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#returnpolicyCustomBatchResponseEntry" Kind string `json:"kind,omitempty"` // ReturnPolicy: The retrieved return policy. ReturnPolicy *ReturnPolicy `json:"returnPolicy,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 (*ReturnpolicyCustomBatchResponseEntry) MarshalJSON ¶ added in v0.9.0
func (s *ReturnpolicyCustomBatchResponseEntry) MarshalJSON() ([]byte, error)
type ReturnpolicyCustombatchCall ¶ added in v0.9.0
type ReturnpolicyCustombatchCall struct {
// contains filtered or unexported fields
}
func (*ReturnpolicyCustombatchCall) Context ¶ added in v0.9.0
func (c *ReturnpolicyCustombatchCall) Context(ctx context.Context) *ReturnpolicyCustombatchCall
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 (*ReturnpolicyCustombatchCall) Do ¶ added in v0.9.0
func (c *ReturnpolicyCustombatchCall) Do(opts ...googleapi.CallOption) (*ReturnpolicyCustomBatchResponse, error)
Do executes the "content.returnpolicy.custombatch" call. Exactly one of *ReturnpolicyCustomBatchResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ReturnpolicyCustomBatchResponse.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 (*ReturnpolicyCustombatchCall) Fields ¶ added in v0.9.0
func (c *ReturnpolicyCustombatchCall) Fields(s ...googleapi.Field) *ReturnpolicyCustombatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ReturnpolicyCustombatchCall) Header ¶ added in v0.9.0
func (c *ReturnpolicyCustombatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ReturnpolicyDeleteCall ¶ added in v0.9.0
type ReturnpolicyDeleteCall struct {
// contains filtered or unexported fields
}
func (*ReturnpolicyDeleteCall) Context ¶ added in v0.9.0
func (c *ReturnpolicyDeleteCall) Context(ctx context.Context) *ReturnpolicyDeleteCall
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 (*ReturnpolicyDeleteCall) Do ¶ added in v0.9.0
func (c *ReturnpolicyDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "content.returnpolicy.delete" call.
func (*ReturnpolicyDeleteCall) Fields ¶ added in v0.9.0
func (c *ReturnpolicyDeleteCall) Fields(s ...googleapi.Field) *ReturnpolicyDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ReturnpolicyDeleteCall) Header ¶ added in v0.9.0
func (c *ReturnpolicyDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ReturnpolicyGetCall ¶ added in v0.9.0
type ReturnpolicyGetCall struct {
// contains filtered or unexported fields
}
func (*ReturnpolicyGetCall) Context ¶ added in v0.9.0
func (c *ReturnpolicyGetCall) Context(ctx context.Context) *ReturnpolicyGetCall
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 (*ReturnpolicyGetCall) Do ¶ added in v0.9.0
func (c *ReturnpolicyGetCall) Do(opts ...googleapi.CallOption) (*ReturnPolicy, error)
Do executes the "content.returnpolicy.get" call. Exactly one of *ReturnPolicy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ReturnPolicy.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 (*ReturnpolicyGetCall) Fields ¶ added in v0.9.0
func (c *ReturnpolicyGetCall) Fields(s ...googleapi.Field) *ReturnpolicyGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ReturnpolicyGetCall) Header ¶ added in v0.9.0
func (c *ReturnpolicyGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ReturnpolicyGetCall) IfNoneMatch ¶ added in v0.9.0
func (c *ReturnpolicyGetCall) IfNoneMatch(entityTag string) *ReturnpolicyGetCall
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 ReturnpolicyInsertCall ¶ added in v0.9.0
type ReturnpolicyInsertCall struct {
// contains filtered or unexported fields
}
func (*ReturnpolicyInsertCall) Context ¶ added in v0.9.0
func (c *ReturnpolicyInsertCall) Context(ctx context.Context) *ReturnpolicyInsertCall
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 (*ReturnpolicyInsertCall) Do ¶ added in v0.9.0
func (c *ReturnpolicyInsertCall) Do(opts ...googleapi.CallOption) (*ReturnPolicy, error)
Do executes the "content.returnpolicy.insert" call. Exactly one of *ReturnPolicy or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ReturnPolicy.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 (*ReturnpolicyInsertCall) Fields ¶ added in v0.9.0
func (c *ReturnpolicyInsertCall) Fields(s ...googleapi.Field) *ReturnpolicyInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ReturnpolicyInsertCall) Header ¶ added in v0.9.0
func (c *ReturnpolicyInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ReturnpolicyListCall ¶ added in v0.9.0
type ReturnpolicyListCall struct {
// contains filtered or unexported fields
}
func (*ReturnpolicyListCall) Context ¶ added in v0.9.0
func (c *ReturnpolicyListCall) Context(ctx context.Context) *ReturnpolicyListCall
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 (*ReturnpolicyListCall) Do ¶ added in v0.9.0
func (c *ReturnpolicyListCall) Do(opts ...googleapi.CallOption) (*ReturnpolicyListResponse, error)
Do executes the "content.returnpolicy.list" call. Exactly one of *ReturnpolicyListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ReturnpolicyListResponse.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 (*ReturnpolicyListCall) Fields ¶ added in v0.9.0
func (c *ReturnpolicyListCall) Fields(s ...googleapi.Field) *ReturnpolicyListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ReturnpolicyListCall) Header ¶ added in v0.9.0
func (c *ReturnpolicyListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ReturnpolicyListCall) IfNoneMatch ¶ added in v0.9.0
func (c *ReturnpolicyListCall) IfNoneMatch(entityTag string) *ReturnpolicyListCall
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 ReturnpolicyListResponse ¶ added in v0.9.0
type ReturnpolicyListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#returnpolicyListResponse". Kind string `json:"kind,omitempty"` Resources []*ReturnPolicy `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 (*ReturnpolicyListResponse) MarshalJSON ¶ added in v0.9.0
func (s *ReturnpolicyListResponse) MarshalJSON() ([]byte, error)
type ReturnpolicyService ¶ added in v0.9.0
type ReturnpolicyService struct {
// contains filtered or unexported fields
}
func NewReturnpolicyService ¶ added in v0.9.0
func NewReturnpolicyService(s *APIService) *ReturnpolicyService
func (*ReturnpolicyService) Custombatch ¶ added in v0.9.0
func (r *ReturnpolicyService) Custombatch(returnpolicycustombatchrequest *ReturnpolicyCustomBatchRequest) *ReturnpolicyCustombatchCall
Custombatch: Batches multiple return policy related calls in a single request.
func (*ReturnpolicyService) Delete ¶ added in v0.9.0
func (r *ReturnpolicyService) Delete(merchantId uint64, returnPolicyId string) *ReturnpolicyDeleteCall
Delete: Deletes a return policy for the given Merchant Center account.
func (*ReturnpolicyService) Get ¶ added in v0.9.0
func (r *ReturnpolicyService) Get(merchantId uint64, returnPolicyId string) *ReturnpolicyGetCall
Get: Gets a return policy of the Merchant Center account.
func (*ReturnpolicyService) Insert ¶ added in v0.9.0
func (r *ReturnpolicyService) Insert(merchantId uint64, returnpolicy *ReturnPolicy) *ReturnpolicyInsertCall
Insert: Inserts a return policy for the Merchant Center account.
func (*ReturnpolicyService) List ¶ added in v0.9.0
func (r *ReturnpolicyService) List(merchantId uint64) *ReturnpolicyListCall
List: Lists the return policies of the Merchant Center account.
type ReturnpolicyonlineCreateCall ¶ added in v0.41.0
type ReturnpolicyonlineCreateCall struct {
// contains filtered or unexported fields
}
func (*ReturnpolicyonlineCreateCall) Context ¶ added in v0.41.0
func (c *ReturnpolicyonlineCreateCall) Context(ctx context.Context) *ReturnpolicyonlineCreateCall
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 (*ReturnpolicyonlineCreateCall) Do ¶ added in v0.41.0
func (c *ReturnpolicyonlineCreateCall) Do(opts ...googleapi.CallOption) (*ReturnPolicyOnline, error)
Do executes the "content.returnpolicyonline.create" call. Exactly one of *ReturnPolicyOnline or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ReturnPolicyOnline.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 (*ReturnpolicyonlineCreateCall) Fields ¶ added in v0.41.0
func (c *ReturnpolicyonlineCreateCall) Fields(s ...googleapi.Field) *ReturnpolicyonlineCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ReturnpolicyonlineCreateCall) Header ¶ added in v0.41.0
func (c *ReturnpolicyonlineCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ReturnpolicyonlineDeleteCall ¶ added in v0.41.0
type ReturnpolicyonlineDeleteCall struct {
// contains filtered or unexported fields
}
func (*ReturnpolicyonlineDeleteCall) Context ¶ added in v0.41.0
func (c *ReturnpolicyonlineDeleteCall) Context(ctx context.Context) *ReturnpolicyonlineDeleteCall
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 (*ReturnpolicyonlineDeleteCall) Do ¶ added in v0.41.0
func (c *ReturnpolicyonlineDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "content.returnpolicyonline.delete" call.
func (*ReturnpolicyonlineDeleteCall) Fields ¶ added in v0.41.0
func (c *ReturnpolicyonlineDeleteCall) Fields(s ...googleapi.Field) *ReturnpolicyonlineDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ReturnpolicyonlineDeleteCall) Header ¶ added in v0.41.0
func (c *ReturnpolicyonlineDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ReturnpolicyonlineGetCall ¶ added in v0.41.0
type ReturnpolicyonlineGetCall struct {
// contains filtered or unexported fields
}
func (*ReturnpolicyonlineGetCall) Context ¶ added in v0.41.0
func (c *ReturnpolicyonlineGetCall) Context(ctx context.Context) *ReturnpolicyonlineGetCall
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 (*ReturnpolicyonlineGetCall) Do ¶ added in v0.41.0
func (c *ReturnpolicyonlineGetCall) Do(opts ...googleapi.CallOption) (*ReturnPolicyOnline, error)
Do executes the "content.returnpolicyonline.get" call. Exactly one of *ReturnPolicyOnline or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ReturnPolicyOnline.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 (*ReturnpolicyonlineGetCall) Fields ¶ added in v0.41.0
func (c *ReturnpolicyonlineGetCall) Fields(s ...googleapi.Field) *ReturnpolicyonlineGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ReturnpolicyonlineGetCall) Header ¶ added in v0.41.0
func (c *ReturnpolicyonlineGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ReturnpolicyonlineGetCall) IfNoneMatch ¶ added in v0.41.0
func (c *ReturnpolicyonlineGetCall) IfNoneMatch(entityTag string) *ReturnpolicyonlineGetCall
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 ReturnpolicyonlineListCall ¶ added in v0.41.0
type ReturnpolicyonlineListCall struct {
// contains filtered or unexported fields
}
func (*ReturnpolicyonlineListCall) Context ¶ added in v0.41.0
func (c *ReturnpolicyonlineListCall) Context(ctx context.Context) *ReturnpolicyonlineListCall
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 (*ReturnpolicyonlineListCall) Do ¶ added in v0.41.0
func (c *ReturnpolicyonlineListCall) Do(opts ...googleapi.CallOption) (*ListReturnPolicyOnlineResponse, error)
Do executes the "content.returnpolicyonline.list" call. Exactly one of *ListReturnPolicyOnlineResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListReturnPolicyOnlineResponse.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 (*ReturnpolicyonlineListCall) Fields ¶ added in v0.41.0
func (c *ReturnpolicyonlineListCall) Fields(s ...googleapi.Field) *ReturnpolicyonlineListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ReturnpolicyonlineListCall) Header ¶ added in v0.41.0
func (c *ReturnpolicyonlineListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ReturnpolicyonlineListCall) IfNoneMatch ¶ added in v0.41.0
func (c *ReturnpolicyonlineListCall) IfNoneMatch(entityTag string) *ReturnpolicyonlineListCall
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 ReturnpolicyonlinePatchCall ¶ added in v0.41.0
type ReturnpolicyonlinePatchCall struct {
// contains filtered or unexported fields
}
func (*ReturnpolicyonlinePatchCall) Context ¶ added in v0.41.0
func (c *ReturnpolicyonlinePatchCall) Context(ctx context.Context) *ReturnpolicyonlinePatchCall
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 (*ReturnpolicyonlinePatchCall) Do ¶ added in v0.41.0
func (c *ReturnpolicyonlinePatchCall) Do(opts ...googleapi.CallOption) (*ReturnPolicyOnline, error)
Do executes the "content.returnpolicyonline.patch" call. Exactly one of *ReturnPolicyOnline or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ReturnPolicyOnline.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 (*ReturnpolicyonlinePatchCall) Fields ¶ added in v0.41.0
func (c *ReturnpolicyonlinePatchCall) Fields(s ...googleapi.Field) *ReturnpolicyonlinePatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ReturnpolicyonlinePatchCall) Header ¶ added in v0.41.0
func (c *ReturnpolicyonlinePatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ReturnpolicyonlineService ¶ added in v0.41.0
type ReturnpolicyonlineService struct {
// contains filtered or unexported fields
}
func NewReturnpolicyonlineService ¶ added in v0.41.0
func NewReturnpolicyonlineService(s *APIService) *ReturnpolicyonlineService
func (*ReturnpolicyonlineService) Create ¶ added in v0.41.0
func (r *ReturnpolicyonlineService) Create(merchantId int64, returnpolicyonline *ReturnPolicyOnline) *ReturnpolicyonlineCreateCall
Create: Creates a new return policy.
func (*ReturnpolicyonlineService) Delete ¶ added in v0.41.0
func (r *ReturnpolicyonlineService) Delete(merchantId int64, returnPolicyId string) *ReturnpolicyonlineDeleteCall
Delete: Deletes an existing return policy.
func (*ReturnpolicyonlineService) Get ¶ added in v0.41.0
func (r *ReturnpolicyonlineService) Get(merchantId int64, returnPolicyId string) *ReturnpolicyonlineGetCall
Get: Gets an existing return policy.
func (*ReturnpolicyonlineService) List ¶ added in v0.41.0
func (r *ReturnpolicyonlineService) List(merchantId int64) *ReturnpolicyonlineListCall
List: Lists all existing return policies.
func (*ReturnpolicyonlineService) Patch ¶ added in v0.41.0
func (r *ReturnpolicyonlineService) Patch(merchantId int64, returnPolicyId string, returnpolicyonline *ReturnPolicyOnline) *ReturnpolicyonlinePatchCall
Patch: Updates an existing return policy.
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 ¶
type SearchRequest ¶ added in v0.41.0
type SearchRequest struct { // PageSize: Number of ReportRows to retrieve in a single page. Defaults // to the maximum of 1000. Values above 1000 are coerced to 1000. PageSize int64 `json:"pageSize,omitempty"` // PageToken: Token of the page to retrieve. If not specified, the first // page of results is returned. In order to request the next page of // results, the value obtained from `next_page_token` in the previous // response should be used. PageToken string `json:"pageToken,omitempty"` // Query: Required. Query that defines performance metrics to retrieve // and dimensions according to which the metrics are to be segmented. Query string `json:"query,omitempty"` // ForceSendFields is a list of field names (e.g. "PageSize") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PageSize") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SearchRequest: Request message for the ReportService.Search method.
func (*SearchRequest) MarshalJSON ¶ added in v0.41.0
func (s *SearchRequest) MarshalJSON() ([]byte, error)
type SearchResponse ¶ added in v0.41.0
type SearchResponse struct { // NextPageToken: Token which can be sent as `page_token` to retrieve // the next page. If omitted, there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` // Results: Rows that matched the search query. Results []*ReportRow `json:"results,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SearchResponse: Response message for the ReportService.Search method.
func (*SearchResponse) MarshalJSON ¶ added in v0.41.0
func (s *SearchResponse) MarshalJSON() ([]byte, error)
type Segments ¶ added in v0.41.0
type Segments struct { // Date: Date in the merchant timezone to which metrics apply. Date *Date `json:"date,omitempty"` // OfferId: Merchant-provided id of the product. OfferId string `json:"offerId,omitempty"` // Program: Program to which metrics apply, e.g., Free Product Listing. // // Possible values: // "PROGRAM_UNSPECIFIED" - Not specified. // "SHOPPING_ADS" - Shopping Ads. // "FREE_PRODUCT_LISTING" - Free Product Listing. // "FREE_LOCAL_PRODUCT_LISTING" - Free Local Product Listing. // "BUY_ON_GOOGLE_LISTING" - Buy on Google Listing. Program string `json:"program,omitempty"` // ForceSendFields is a list of field names (e.g. "Date") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Date") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Segments: Dimensions according to which metrics are segmented in the response. Values of product dimensions, e.g., offer id, reflect the state of a product at the time of the corresponding event, e.g., impression or order. Segment fields cannot be selected in queries without also selecting at least one metric field. Values are only set for dimensions requested explicitly in the request's search query.
func (*Segments) MarshalJSON ¶ added in v0.41.0
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"` // Eligibility: Eligibility for this service. Acceptable values are: - // "All scenarios" - "All scenarios except Shopping Actions" - // "Shopping Actions" Eligibility string `json:"eligibility,omitempty"` // MinimumOrderValue: Minimum order value for this service. If set, // indicates that customers will have to spend at least this amount. All // prices within a service must have the same currency. Cannot be set // together with minimum_order_value_table. MinimumOrderValue *Price `json:"minimumOrderValue,omitempty"` // MinimumOrderValueTable: Table of per store minimum order values for // the pickup fulfillment type. Cannot be set together with // minimum_order_value. MinimumOrderValueTable *MinimumOrderValueTable `json:"minimumOrderValueTable,omitempty"` // Name: Free-form name of the service. Must be unique within target // account. Required. Name string `json:"name,omitempty"` // PickupService: The carrier-service pair delivering items to // collection points. The list of supported pickup services can be // retrieved via the `getSupportedPickupServices` method. Required if // and only if the service delivery type is `pickup`. PickupService *PickupCarrierService `json:"pickupService,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"` // ShipmentType: Type of locations this service ships orders to. // Acceptable values are: - "delivery" - "pickup" ShipmentType string `json:"shipmentType,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 ¶
type SettlementReport ¶ added in v0.23.0
type SettlementReport struct { // EndDate: The end date on which all transactions are included in the // report, in ISO 8601 format. EndDate string `json:"endDate,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#settlementReport" Kind string `json:"kind,omitempty"` // PreviousBalance: The residual amount from the previous invoice. This // is set only if the previous invoices are not paid because of negative // balance. PreviousBalance *Price `json:"previousBalance,omitempty"` // SettlementId: The ID of the settlement report. SettlementId string `json:"settlementId,omitempty"` // StartDate: The start date on which all transactions are included in // the report, in ISO 8601 format. StartDate string `json:"startDate,omitempty"` // TransferAmount: The money due to the merchant. TransferAmount *Price `json:"transferAmount,omitempty"` // TransferDate: Date on which transfer for this payment was initiated // by Google, in ISO 8601 format. TransferDate string `json:"transferDate,omitempty"` // TransferIds: The list of bank identifiers used for the transfer. e.g. // Trace ID for Federal Automated Clearing House (ACH). This may also be // known as the Wire ID. TransferIds []string `json:"transferIds,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "EndDate") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EndDate") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
SettlementReport: Settlement reports detail order-level and item-level credits and debits between you and Google.
func (*SettlementReport) MarshalJSON ¶ added in v0.23.0
func (s *SettlementReport) MarshalJSON() ([]byte, error)
type SettlementTransaction ¶ added in v0.23.0
type SettlementTransaction struct { // Amount: The amount for the transaction. Amount *SettlementTransactionAmount `json:"amount,omitempty"` // Identifiers: Identifiers of the transaction. Identifiers *SettlementTransactionIdentifiers `json:"identifiers,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#settlementTransaction" Kind string `json:"kind,omitempty"` // Transaction: Details of the transaction. Transaction *SettlementTransactionTransaction `json:"transaction,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:"-"` }
SettlementTransaction: Settlement transactions give a detailed breakdown of the settlement report.
func (*SettlementTransaction) MarshalJSON ¶ added in v0.23.0
func (s *SettlementTransaction) MarshalJSON() ([]byte, error)
type SettlementTransactionAmount ¶ added in v0.23.0
type SettlementTransactionAmount struct { Commission *SettlementTransactionAmountCommission `json:"commission,omitempty"` // Description: The description of the event. Acceptable values are: - // "taxWithhold" - "principal" - "principalAdjustment" - // "shippingFee" - "merchantRemittedSalesTax" - // "googleRemittedSalesTax" - "merchantCoupon" - // "merchantCouponTax" - "merchantRemittedDisposalTax" - // "googleRemittedDisposalTax" - "merchantRemittedRedemptionFee" - // "googleRemittedRedemptionFee" - "eeeEcoFee" - "furnitureEcoFee" // - "copyPrivateFee" - "eeeEcoFeeCommission" - // "furnitureEcoFeeCommission" - "copyPrivateFeeCommission" - // "principalRefund" - "principalRefundTax" - "itemCommission" - // "adjustmentCommission" - "shippingFeeCommission" - // "commissionRefund" - "damaged" - "damagedOrDefectiveItem" - // "expiredItem" - "faultyItem" - "incorrectItemReceived" - // "itemMissing" - "qualityNotExpected" - "receivedTooLate" - // "storePackageMissing" - "transitPackageMissing" - // "unsuccessfulDeliveryUndeliverable" - "wrongChargeInStore" - // "wrongItem" - "returns" - "undeliverable" - // "issueRelatedRefundAndReplacementAmountDescription" - // "refundFromMerchant" - "returnLabelShippingFee" - // "lumpSumCorrection" - "pspFee" Description string `json:"description,omitempty"` // TransactionAmount: The amount that contributes to the line item // price. TransactionAmount *Price `json:"transactionAmount,omitempty"` // Type: The type of the amount. Acceptable values are: - "itemPrice" // - "orderPrice" - "refund" - "earlyRefund" - "courtesyRefund" // - "returnRefund" - "returnLabelShippingFeeAmount" - // "lumpSumCorrectionAmount" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Commission") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Commission") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*SettlementTransactionAmount) MarshalJSON ¶ added in v0.23.0
func (s *SettlementTransactionAmount) MarshalJSON() ([]byte, error)
type SettlementTransactionAmountCommission ¶ added in v0.23.0
type SettlementTransactionAmountCommission struct { // Category: The category of the commission. Acceptable values are: - // "animalsAndPetSupplies" - "dogCatFoodAndCatLitter" - // "apparelAndAccessories" - "shoesHandbagsAndSunglasses" - // "costumesAndAccessories" - "jewelry" - "watches" - // "hobbiesArtsAndCrafts" - "homeAndGarden" - // "entertainmentCollectibles" - "collectibleCoins" - // "sportsCollectibles" - "sportingGoods" - "toysAndGames" - // "musicalInstruments" - "giftCards" - "babyAndToddler" - // "babyFoodWipesAndDiapers" - "businessAndIndustrial" - // "camerasOpticsAndPhotography" - "consumerElectronics" - // "electronicsAccessories" - "personalComputers" - // "videoGameConsoles" - "foodAndGrocery" - "beverages" - // "tobaccoProducts" - "furniture" - "hardware" - // "buildingMaterials" - "tools" - "healthAndPersonalCare" - // "beauty" - "householdSupplies" - "kitchenAndDining" - // "majorAppliances" - "luggageAndBags" - "media" - // "officeSupplies" - "softwareAndVideoGames" - // "vehiclePartsAndAccessories" - "vehicleTiresAndWheels" - // "vehicles" - "everythingElse" Category string `json:"category,omitempty"` // Rate: Rate of the commission in percentage. Rate string `json:"rate,omitempty"` // ForceSendFields is a list of field names (e.g. "Category") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Category") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*SettlementTransactionAmountCommission) MarshalJSON ¶ added in v0.23.0
func (s *SettlementTransactionAmountCommission) MarshalJSON() ([]byte, error)
type SettlementTransactionIdentifiers ¶ added in v0.23.0
type SettlementTransactionIdentifiers struct { // AdjustmentId: The identifier of the adjustments, if it is available. AdjustmentId string `json:"adjustmentId,omitempty"` // MerchantOrderId: The merchant provided order ID. MerchantOrderId string `json:"merchantOrderId,omitempty"` // OrderItemId: The identifier of the item. OrderItemId string `json:"orderItemId,omitempty"` // SettlementEntryId: The unique ID of the settlement transaction entry. SettlementEntryId string `json:"settlementEntryId,omitempty"` // ShipmentIds: The shipment ids for the item. ShipmentIds []string `json:"shipmentIds,omitempty"` // TransactionId: The Google transaction ID. TransactionId string `json:"transactionId,omitempty"` // ForceSendFields is a list of field names (e.g. "AdjustmentId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AdjustmentId") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*SettlementTransactionIdentifiers) MarshalJSON ¶ added in v0.23.0
func (s *SettlementTransactionIdentifiers) MarshalJSON() ([]byte, error)
type SettlementTransactionTransaction ¶ added in v0.23.0
type SettlementTransactionTransaction struct { // PostDate: The time on which the event occurred in ISO 8601 format. PostDate string `json:"postDate,omitempty"` // Type: The type of the transaction that occurred. Acceptable values // are: - "order" - "reversal" - "orderRefund" - // "reversalRefund" - "issueRelatedRefundAndReplacement" - // "returnLabelShippingFeeTransaction" - // "reversalIssueRelatedRefundAndReplacement" - // "reversalReturnLabelShippingFeeTransaction" - // "lumpSumCorrectionTransaction" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "PostDate") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PostDate") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*SettlementTransactionTransaction) MarshalJSON ¶ added in v0.23.0
func (s *SettlementTransactionTransaction) MarshalJSON() ([]byte, error)
type SettlementreportsGetCall ¶ added in v0.23.0
type SettlementreportsGetCall struct {
// contains filtered or unexported fields
}
func (*SettlementreportsGetCall) Context ¶ added in v0.23.0
func (c *SettlementreportsGetCall) Context(ctx context.Context) *SettlementreportsGetCall
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 (*SettlementreportsGetCall) Do ¶ added in v0.23.0
func (c *SettlementreportsGetCall) Do(opts ...googleapi.CallOption) (*SettlementReport, error)
Do executes the "content.settlementreports.get" call. Exactly one of *SettlementReport or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SettlementReport.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 (*SettlementreportsGetCall) Fields ¶ added in v0.23.0
func (c *SettlementreportsGetCall) Fields(s ...googleapi.Field) *SettlementreportsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*SettlementreportsGetCall) Header ¶ added in v0.23.0
func (c *SettlementreportsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SettlementreportsGetCall) IfNoneMatch ¶ added in v0.23.0
func (c *SettlementreportsGetCall) IfNoneMatch(entityTag string) *SettlementreportsGetCall
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 SettlementreportsListCall ¶ added in v0.23.0
type SettlementreportsListCall struct {
// contains filtered or unexported fields
}
func (*SettlementreportsListCall) Context ¶ added in v0.23.0
func (c *SettlementreportsListCall) Context(ctx context.Context) *SettlementreportsListCall
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 (*SettlementreportsListCall) Do ¶ added in v0.23.0
func (c *SettlementreportsListCall) Do(opts ...googleapi.CallOption) (*SettlementreportsListResponse, error)
Do executes the "content.settlementreports.list" call. Exactly one of *SettlementreportsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SettlementreportsListResponse.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 (*SettlementreportsListCall) Fields ¶ added in v0.23.0
func (c *SettlementreportsListCall) Fields(s ...googleapi.Field) *SettlementreportsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*SettlementreportsListCall) Header ¶ added in v0.23.0
func (c *SettlementreportsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SettlementreportsListCall) IfNoneMatch ¶ added in v0.23.0
func (c *SettlementreportsListCall) IfNoneMatch(entityTag string) *SettlementreportsListCall
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 (*SettlementreportsListCall) MaxResults ¶ added in v0.23.0
func (c *SettlementreportsListCall) MaxResults(maxResults int64) *SettlementreportsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of settlements to return in the response, used for paging. The default value is 200 returns per page, and the maximum allowed value is 5000 returns per page.
func (*SettlementreportsListCall) PageToken ¶ added in v0.23.0
func (c *SettlementreportsListCall) PageToken(pageToken string) *SettlementreportsListCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
func (*SettlementreportsListCall) Pages ¶ added in v0.23.0
func (c *SettlementreportsListCall) Pages(ctx context.Context, f func(*SettlementreportsListResponse) 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 (*SettlementreportsListCall) TransferEndDate ¶ added in v0.23.0
func (c *SettlementreportsListCall) TransferEndDate(transferEndDate string) *SettlementreportsListCall
TransferEndDate sets the optional parameter "transferEndDate": Obtains settlements which have transactions before this date (inclusively), in ISO 8601 format.
func (*SettlementreportsListCall) TransferStartDate ¶ added in v0.23.0
func (c *SettlementreportsListCall) TransferStartDate(transferStartDate string) *SettlementreportsListCall
TransferStartDate sets the optional parameter "transferStartDate": Obtains settlements which have transactions after this date (inclusively), in ISO 8601 format.
type SettlementreportsListResponse ¶ added in v0.23.0
type SettlementreportsListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#settlementreportsListResponse". Kind string `json:"kind,omitempty"` // NextPageToken: The token for the retrieval of the next page of // returns. NextPageToken string `json:"nextPageToken,omitempty"` Resources []*SettlementReport `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 (*SettlementreportsListResponse) MarshalJSON ¶ added in v0.23.0
func (s *SettlementreportsListResponse) MarshalJSON() ([]byte, error)
type SettlementreportsService ¶ added in v0.23.0
type SettlementreportsService struct {
// contains filtered or unexported fields
}
func NewSettlementreportsService ¶ added in v0.23.0
func NewSettlementreportsService(s *APIService) *SettlementreportsService
func (*SettlementreportsService) Get ¶ added in v0.23.0
func (r *SettlementreportsService) Get(merchantId uint64, settlementId string) *SettlementreportsGetCall
Get: Retrieves a settlement report from your Merchant Center account.
func (*SettlementreportsService) List ¶ added in v0.23.0
func (r *SettlementreportsService) List(merchantId uint64) *SettlementreportsListCall
List: Retrieves a list of settlement reports from your Merchant Center account.
type SettlementtransactionsListCall ¶ added in v0.23.0
type SettlementtransactionsListCall struct {
// contains filtered or unexported fields
}
func (*SettlementtransactionsListCall) Context ¶ added in v0.23.0
func (c *SettlementtransactionsListCall) Context(ctx context.Context) *SettlementtransactionsListCall
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 (*SettlementtransactionsListCall) Do ¶ added in v0.23.0
func (c *SettlementtransactionsListCall) Do(opts ...googleapi.CallOption) (*SettlementtransactionsListResponse, error)
Do executes the "content.settlementtransactions.list" call. Exactly one of *SettlementtransactionsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SettlementtransactionsListResponse.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 (*SettlementtransactionsListCall) Fields ¶ added in v0.23.0
func (c *SettlementtransactionsListCall) Fields(s ...googleapi.Field) *SettlementtransactionsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*SettlementtransactionsListCall) Header ¶ added in v0.23.0
func (c *SettlementtransactionsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*SettlementtransactionsListCall) IfNoneMatch ¶ added in v0.23.0
func (c *SettlementtransactionsListCall) IfNoneMatch(entityTag string) *SettlementtransactionsListCall
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 (*SettlementtransactionsListCall) MaxResults ¶ added in v0.23.0
func (c *SettlementtransactionsListCall) MaxResults(maxResults int64) *SettlementtransactionsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of transactions to return in the response, used for paging. The default value is 200 transactions per page, and the maximum allowed value is 5000 transactions per page.
func (*SettlementtransactionsListCall) PageToken ¶ added in v0.23.0
func (c *SettlementtransactionsListCall) PageToken(pageToken string) *SettlementtransactionsListCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
func (*SettlementtransactionsListCall) Pages ¶ added in v0.23.0
func (c *SettlementtransactionsListCall) Pages(ctx context.Context, f func(*SettlementtransactionsListResponse) 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 (*SettlementtransactionsListCall) TransactionIds ¶ added in v0.23.0
func (c *SettlementtransactionsListCall) TransactionIds(transactionIds ...string) *SettlementtransactionsListCall
TransactionIds sets the optional parameter "transactionIds": The list of transactions to return. If not set, all transactions will be returned.
type SettlementtransactionsListResponse ¶ added in v0.23.0
type SettlementtransactionsListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#settlementtransactionsListResponse". Kind string `json:"kind,omitempty"` // NextPageToken: The token for the retrieval of the next page of // returns. NextPageToken string `json:"nextPageToken,omitempty"` Resources []*SettlementTransaction `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 (*SettlementtransactionsListResponse) MarshalJSON ¶ added in v0.23.0
func (s *SettlementtransactionsListResponse) MarshalJSON() ([]byte, error)
type SettlementtransactionsService ¶ added in v0.23.0
type SettlementtransactionsService struct {
// contains filtered or unexported fields
}
func NewSettlementtransactionsService ¶ added in v0.23.0
func NewSettlementtransactionsService(s *APIService) *SettlementtransactionsService
func (*SettlementtransactionsService) List ¶ added in v0.23.0
func (r *SettlementtransactionsService) List(merchantId uint64, settlementId string) *SettlementtransactionsListCall
List: Retrieves a list of transactions for the settlement.
type ShipmentInvoice ¶
type ShipmentInvoice struct { // InvoiceSummary: [required] Invoice summary. InvoiceSummary *InvoiceSummary `json:"invoiceSummary,omitempty"` // LineItemInvoices: [required] Invoice details per line item. LineItemInvoices []*ShipmentInvoiceLineItemInvoice `json:"lineItemInvoices,omitempty"` // ShipmentGroupId: [required] ID of the shipment group. It is assigned // by the merchant in the `shipLineItems` method and is used to group // multiple line items that have the same kind of shipping charges. ShipmentGroupId string `json:"shipmentGroupId,omitempty"` // ForceSendFields is a list of field names (e.g. "InvoiceSummary") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "InvoiceSummary") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*ShipmentInvoice) MarshalJSON ¶
func (s *ShipmentInvoice) MarshalJSON() ([]byte, error)
type ShipmentInvoiceLineItemInvoice ¶
type ShipmentInvoiceLineItemInvoice struct { // LineItemId: ID of the line item. Either lineItemId or productId must // be set. LineItemId string `json:"lineItemId,omitempty"` // ProductId: ID of the product. This is the REST ID used in the // products service. Either lineItemId or productId must be set. ProductId string `json:"productId,omitempty"` // ShipmentUnitIds: [required] The shipment unit ID is assigned by the // merchant and defines individual quantities within a line item. The // same ID can be assigned to units that are the same while units that // differ must be assigned a different ID (for example: free or // promotional units). ShipmentUnitIds []string `json:"shipmentUnitIds,omitempty"` // UnitInvoice: [required] Invoice details for a single unit. UnitInvoice *UnitInvoice `json:"unitInvoice,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 (*ShipmentInvoiceLineItemInvoice) MarshalJSON ¶
func (s *ShipmentInvoiceLineItemInvoice) MarshalJSON() ([]byte, error)
type ShipmentTrackingInfo ¶
type ShipmentTrackingInfo struct { // Carrier: The shipping carrier that handles the package. Acceptable // values are: - "boxtal" - "bpost" - "chronopost" - // "colisPrive" - "colissimo" - "cxt" - "deliv" - "dhl" - // "dpd" - "dynamex" - "eCourier" - "easypost" - "efw" - // "fedex" - "fedexSmartpost" - "geodis" - "gls" - // "googleCourier" - "gsx" - "jdLogistics" - "laPoste" - // "lasership" - "manual" - "mpx" - "onTrac" - "other" - // "tnt" - "uds" - "ups" - "usps" Carrier string `json:"carrier,omitempty"` // TrackingNumber: The tracking number for the package. TrackingNumber string `json:"trackingNumber,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 (*ShipmentTrackingInfo) MarshalJSON ¶
func (s *ShipmentTrackingInfo) MarshalJSON() ([]byte, error)
type ShippingSettings ¶
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:"-"` }
ShippingSettings: The merchant account's shipping settings. All methods except getsupportedcarriers and getsupportedholidays require the admin role.
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 ¶
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: The method of the batch entry. Acceptable values are: - // "get" - "update" 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:"-"` }
ShippingsettingsCustomBatchRequestEntry: A batch entry encoding a single non-batch shippingsettings request.
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 ¶
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:"-"` }
ShippingsettingsCustomBatchResponseEntry: A batch entry encoding a single non-batch shipping settings response.
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) 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 ShippingsettingsGetSupportedHolidaysResponse ¶
type ShippingsettingsGetSupportedHolidaysResponse struct { // Holidays: A list of holidays applicable for delivery guarantees. May // be empty. Holidays []*HolidaysHoliday `json:"holidays,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#shippingsettingsGetSupportedHolidaysResponse". 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. "Holidays") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Holidays") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ShippingsettingsGetSupportedHolidaysResponse) MarshalJSON ¶
func (s *ShippingsettingsGetSupportedHolidaysResponse) MarshalJSON() ([]byte, error)
type ShippingsettingsGetSupportedPickupServicesResponse ¶ added in v0.16.0
type ShippingsettingsGetSupportedPickupServicesResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#shippingsettingsGetSupportedPickupServicesResponse". Kind string `json:"kind,omitempty"` // PickupServices: A list of supported pickup services. May be empty. PickupServices []*PickupServicesPickupService `json:"pickupServices,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 (*ShippingsettingsGetSupportedPickupServicesResponse) MarshalJSON ¶ added in v0.16.0
func (s *ShippingsettingsGetSupportedPickupServicesResponse) 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 ShippingsettingsGetsupportedholidaysCall ¶
type ShippingsettingsGetsupportedholidaysCall struct {
// contains filtered or unexported fields
}
func (*ShippingsettingsGetsupportedholidaysCall) Context ¶
func (c *ShippingsettingsGetsupportedholidaysCall) Context(ctx context.Context) *ShippingsettingsGetsupportedholidaysCall
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 (*ShippingsettingsGetsupportedholidaysCall) Do ¶
func (c *ShippingsettingsGetsupportedholidaysCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsGetSupportedHolidaysResponse, error)
Do executes the "content.shippingsettings.getsupportedholidays" call. Exactly one of *ShippingsettingsGetSupportedHolidaysResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ShippingsettingsGetSupportedHolidaysResponse.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 (*ShippingsettingsGetsupportedholidaysCall) Fields ¶
func (c *ShippingsettingsGetsupportedholidaysCall) Fields(s ...googleapi.Field) *ShippingsettingsGetsupportedholidaysCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ShippingsettingsGetsupportedholidaysCall) Header ¶
func (c *ShippingsettingsGetsupportedholidaysCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ShippingsettingsGetsupportedholidaysCall) IfNoneMatch ¶
func (c *ShippingsettingsGetsupportedholidaysCall) IfNoneMatch(entityTag string) *ShippingsettingsGetsupportedholidaysCall
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 ShippingsettingsGetsupportedpickupservicesCall ¶ added in v0.16.0
type ShippingsettingsGetsupportedpickupservicesCall struct {
// contains filtered or unexported fields
}
func (*ShippingsettingsGetsupportedpickupservicesCall) Context ¶ added in v0.16.0
func (c *ShippingsettingsGetsupportedpickupservicesCall) Context(ctx context.Context) *ShippingsettingsGetsupportedpickupservicesCall
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 (*ShippingsettingsGetsupportedpickupservicesCall) Do ¶ added in v0.16.0
func (c *ShippingsettingsGetsupportedpickupservicesCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsGetSupportedPickupServicesResponse, error)
Do executes the "content.shippingsettings.getsupportedpickupservices" call. Exactly one of *ShippingsettingsGetSupportedPickupServicesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ShippingsettingsGetSupportedPickupServicesResponse.ServerResponse.Hea der or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ShippingsettingsGetsupportedpickupservicesCall) Fields ¶ added in v0.16.0
func (c *ShippingsettingsGetsupportedpickupservicesCall) Fields(s ...googleapi.Field) *ShippingsettingsGetsupportedpickupservicesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ShippingsettingsGetsupportedpickupservicesCall) Header ¶ added in v0.16.0
func (c *ShippingsettingsGetsupportedpickupservicesCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ShippingsettingsGetsupportedpickupservicesCall) IfNoneMatch ¶ added in v0.16.0
func (c *ShippingsettingsGetsupportedpickupservicesCall) IfNoneMatch(entityTag string) *ShippingsettingsGetsupportedpickupservicesCall
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 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.
func (*ShippingsettingsService) Getsupportedcarriers ¶
func (r *ShippingsettingsService) Getsupportedcarriers(merchantId uint64) *ShippingsettingsGetsupportedcarriersCall
Getsupportedcarriers: Retrieves supported carriers and carrier services for an account.
func (*ShippingsettingsService) Getsupportedholidays ¶
func (r *ShippingsettingsService) Getsupportedholidays(merchantId uint64) *ShippingsettingsGetsupportedholidaysCall
Getsupportedholidays: Retrieves supported holidays for an account.
func (*ShippingsettingsService) Getsupportedpickupservices ¶ added in v0.16.0
func (r *ShippingsettingsService) Getsupportedpickupservices(merchantId uint64) *ShippingsettingsGetsupportedpickupservicesCall
Getsupportedpickupservices: Retrieves supported pickup 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.
func (*ShippingsettingsService) Update ¶
func (r *ShippingsettingsService) Update(merchantId uint64, accountId uint64, shippingsettings *ShippingSettings) *ShippingsettingsUpdateCall
Update: Updates the shipping settings of the account. Any fields that are not provided are deleted from the resource.
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) 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 ¶
type TestOrder ¶
type TestOrder struct { // DeliveryDetails: Overrides the predefined delivery details if // provided. DeliveryDetails *TestOrderDeliveryDetails `json:"deliveryDetails,omitempty"` // EnableOrderinvoices: Whether the orderinvoices service should support // this order. EnableOrderinvoices bool `json:"enableOrderinvoices,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#testOrder" Kind string `json:"kind,omitempty"` // LineItems: Required. Line items that are ordered. At least one line // item must be provided. LineItems []*TestOrderLineItem `json:"lineItems,omitempty"` // NotificationMode: Restricted. Do not use. NotificationMode string `json:"notificationMode,omitempty"` // PickupDetails: Overrides the predefined pickup details if provided. PickupDetails *TestOrderPickupDetails `json:"pickupDetails,omitempty"` // PredefinedBillingAddress: Required. The billing address. Acceptable // values are: - "dwight" - "jim" - "pam" PredefinedBillingAddress string `json:"predefinedBillingAddress,omitempty"` // PredefinedDeliveryAddress: Required. Identifier of one of the // predefined delivery addresses for the delivery. Acceptable values // are: - "dwight" - "jim" - "pam" PredefinedDeliveryAddress string `json:"predefinedDeliveryAddress,omitempty"` // PredefinedEmail: Required. Email address of the customer. Acceptable // values are: - "[email protected]" - // "[email protected]" - "[email protected]" PredefinedEmail string `json:"predefinedEmail,omitempty"` // PredefinedPickupDetails: Identifier of one of the predefined pickup // details. Required for orders containing line items with shipping type // `pickup`. Acceptable values are: - "dwight" - "jim" - "pam" PredefinedPickupDetails string `json:"predefinedPickupDetails,omitempty"` // Promotions: Promotions associated with the order. Promotions []*OrderPromotion `json:"promotions,omitempty"` // ShippingCost: Required. The price of shipping for all items. Shipping // tax is automatically calculated for orders where marketplace // facilitator tax laws are applicable. Otherwise, tax settings from // Merchant Center are applied. Note that shipping is not taxed in // certain states. ShippingCost *Price `json:"shippingCost,omitempty"` // ShippingOption: Required. The requested shipping option. Acceptable // values are: - "economy" - "expedited" - "oneDay" - "sameDay" // - "standard" - "twoDay" ShippingOption string `json:"shippingOption,omitempty"` // ForceSendFields is a list of field names (e.g. "DeliveryDetails") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DeliveryDetails") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a 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 ¶
type TestOrderAddress ¶ added in v0.29.0
type TestOrderAddress struct { // Country: CLDR country code (e.g. "US"). Country string `json:"country,omitempty"` // FullAddress: Strings representing the lines of the printed label for // mailing the order, for example: John Smith 1600 Amphitheatre Parkway // Mountain View, CA, 94043 United States FullAddress []string `json:"fullAddress,omitempty"` // IsPostOfficeBox: Whether the address is a post office box. IsPostOfficeBox bool `json:"isPostOfficeBox,omitempty"` // Locality: City, town or commune. May also include dependent // localities or sublocalities (e.g. neighborhoods or suburbs). Locality string `json:"locality,omitempty"` // PostalCode: Postal Code or ZIP (e.g. "94043"). PostalCode string `json:"postalCode,omitempty"` // RecipientName: Name of the recipient. RecipientName string `json:"recipientName,omitempty"` // Region: Top-level administrative subdivision of the country. For // example, a state like California ("CA") or a province like Quebec // ("QC"). Region string `json:"region,omitempty"` // StreetAddress: Street-level part of the address. StreetAddress []string `json:"streetAddress,omitempty"` // ForceSendFields is a list of field names (e.g. "Country") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Country") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*TestOrderAddress) MarshalJSON ¶ added in v0.29.0
func (s *TestOrderAddress) MarshalJSON() ([]byte, error)
type TestOrderDeliveryDetails ¶ added in v0.29.0
type TestOrderDeliveryDetails struct { // Address: The delivery address Address *TestOrderAddress `json:"address,omitempty"` // IsScheduledDelivery: Whether the order is scheduled delivery order. IsScheduledDelivery bool `json:"isScheduledDelivery,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 (*TestOrderDeliveryDetails) MarshalJSON ¶ added in v0.29.0
func (s *TestOrderDeliveryDetails) MarshalJSON() ([]byte, error)
type TestOrderLineItem ¶
type TestOrderLineItem struct { // Product: Required. Product data from the time of the order placement. Product *TestOrderLineItemProduct `json:"product,omitempty"` // QuantityOrdered: Required. Number of items ordered. QuantityOrdered int64 `json:"quantityOrdered,omitempty"` // ReturnInfo: Required. Details of the return policy for the line item. ReturnInfo *OrderLineItemReturnInfo `json:"returnInfo,omitempty"` // ShippingDetails: Required. Details of the requested shipping for the // line item. ShippingDetails *OrderLineItemShippingDetails `json:"shippingDetails,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: Required. Brand of the item. Brand string `json:"brand,omitempty"` // Condition: Required. Condition or state of the item. Acceptable // values are: - "new" Condition string `json:"condition,omitempty"` // ContentLanguage: Required. The two-letter ISO 639-1 language code for // the item. Acceptable values are: - "en" - "fr" ContentLanguage string `json:"contentLanguage,omitempty"` // Fees: Fees for the item. Optional. Fees []*OrderLineItemProductFee `json:"fees,omitempty"` // Gtin: Global Trade Item Number (GTIN) of the item. Optional. Gtin string `json:"gtin,omitempty"` // ImageLink: Required. 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: Required. An identifier of the item. OfferId string `json:"offerId,omitempty"` // Price: Required. The price for the product. Tax is automatically // calculated for orders where marketplace facilitator tax laws are // applicable. Otherwise, tax settings from Merchant Center are applied. Price *Price `json:"price,omitempty"` // TargetCountry: Required. The CLDR territory // code of the target // country of the product. TargetCountry string `json:"targetCountry,omitempty"` // Title: Required. 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 TestOrderPickupDetails ¶ added in v0.29.0
type TestOrderPickupDetails struct { // LocationCode: Required. Code of the location defined by provider or // merchant. LocationCode string `json:"locationCode,omitempty"` // PickupLocationAddress: Required. Pickup location address. PickupLocationAddress *TestOrderAddress `json:"pickupLocationAddress,omitempty"` // PickupLocationType: Pickup location type. Acceptable values are: - // "locker" - "store" - "curbside" PickupLocationType string `json:"pickupLocationType,omitempty"` // PickupPersons: Required. all pickup persons set by users. PickupPersons []*TestOrderPickupDetailsPickupPerson `json:"pickupPersons,omitempty"` // ForceSendFields is a list of field names (e.g. "LocationCode") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LocationCode") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*TestOrderPickupDetails) MarshalJSON ¶ added in v0.29.0
func (s *TestOrderPickupDetails) MarshalJSON() ([]byte, error)
type TestOrderPickupDetailsPickupPerson ¶ added in v0.29.0
type TestOrderPickupDetailsPickupPerson struct { // Name: Required. Full name of the pickup person. Name string `json:"name,omitempty"` // PhoneNumber: Required. The phone number of the person picking up the // items. PhoneNumber string `json:"phoneNumber,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 (*TestOrderPickupDetailsPickupPerson) MarshalJSON ¶ added in v0.29.0
func (s *TestOrderPickupDetailsPickupPerson) MarshalJSON() ([]byte, error)
type TimeZone ¶ added in v0.36.0
type TimeZone struct { // Id: IANA Time Zone Database time zone, e.g. "America/New_York". Id string `json:"id,omitempty"` // Version: Optional. IANA Time Zone Database version number, e.g. // "2019a". Version string `json:"version,omitempty"` // ForceSendFields is a list of field names (e.g. "Id") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Id") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
TimeZone: Represents a time zone from the IANA Time Zone Database (https://www.iana.org/time-zones).
func (*TimeZone) MarshalJSON ¶ added in v0.36.0
type TransitTable ¶ added in v0.2.0
type TransitTable struct { // 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. PostalCodeGroupNames []string `json:"postalCodeGroupNames,omitempty"` Rows []*TransitTableTransitTimeRow `json:"rows,omitempty"` // TransitTimeLabels: A list of transit time labels. The last value can // be "all other labels". Example: `["food", "electronics", "all other // labels"]`. TransitTimeLabels []string `json:"transitTimeLabels,omitempty"` // ForceSendFields is a list of field names (e.g. // "PostalCodeGroupNames") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PostalCodeGroupNames") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*TransitTable) MarshalJSON ¶ added in v0.2.0
func (s *TransitTable) MarshalJSON() ([]byte, error)
type TransitTableTransitTimeRow ¶ added in v0.2.0
type TransitTableTransitTimeRow struct { Values []*TransitTableTransitTimeRowTransitTimeValue `json:"values,omitempty"` // ForceSendFields is a list of field names (e.g. "Values") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Values") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*TransitTableTransitTimeRow) MarshalJSON ¶ added in v0.2.0
func (s *TransitTableTransitTimeRow) MarshalJSON() ([]byte, error)
type TransitTableTransitTimeRowTransitTimeValue ¶ added in v0.2.0
type TransitTableTransitTimeRowTransitTimeValue struct { // MaxTransitTimeInDays: Must be greater than or equal to // `minTransitTimeInDays`. MaxTransitTimeInDays int64 `json:"maxTransitTimeInDays,omitempty"` // MinTransitTimeInDays: Transit time range (min-max) in business days. // 0 means same day delivery, 1 means next day delivery. 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 (*TransitTableTransitTimeRowTransitTimeValue) MarshalJSON ¶ added in v0.2.0
func (s *TransitTableTransitTimeRowTransitTimeValue) MarshalJSON() ([]byte, error)
type UnitInvoice ¶
type UnitInvoice struct { // AdditionalCharges: Additional charges for a unit, e.g. shipping // costs. AdditionalCharges []*UnitInvoiceAdditionalCharge `json:"additionalCharges,omitempty"` // UnitPrice: [required] Pre-tax or post-tax price of the unit depending // on the locality of the order. UnitPrice *Price `json:"unitPrice,omitempty"` // UnitPriceTaxes: Tax amounts to apply to the unit price. UnitPriceTaxes []*UnitInvoiceTaxLine `json:"unitPriceTaxes,omitempty"` // ForceSendFields is a list of field names (e.g. "AdditionalCharges") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AdditionalCharges") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*UnitInvoice) MarshalJSON ¶
func (s *UnitInvoice) MarshalJSON() ([]byte, error)
type UnitInvoiceAdditionalCharge ¶
type UnitInvoiceAdditionalCharge struct { // AdditionalChargeAmount: [required] Amount of the additional charge. AdditionalChargeAmount *Amount `json:"additionalChargeAmount,omitempty"` // Type: [required] Type of the additional charge. Acceptable values // are: - "shipping" Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. // "AdditionalChargeAmount") to unconditionally include in API requests. // By default, fields with empty values are omitted from API requests. // However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AdditionalChargeAmount") // to include in API requests with the JSON null value. By default, // fields with empty values are omitted from API requests. However, any // field with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*UnitInvoiceAdditionalCharge) MarshalJSON ¶
func (s *UnitInvoiceAdditionalCharge) MarshalJSON() ([]byte, error)
type UnitInvoiceTaxLine ¶
type UnitInvoiceTaxLine struct { // TaxAmount: [required] Tax amount for the tax type. TaxAmount *Price `json:"taxAmount,omitempty"` // TaxName: Optional name of the tax type. This should only be provided // if `taxType` is `otherFeeTax`. TaxName string `json:"taxName,omitempty"` // TaxType: [required] Type of the tax. Acceptable values are: - // "otherFee" - "otherFeeTax" - "sales" TaxType string `json:"taxType,omitempty"` // ForceSendFields is a list of field names (e.g. "TaxAmount") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "TaxAmount") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*UnitInvoiceTaxLine) MarshalJSON ¶
func (s *UnitInvoiceTaxLine) MarshalJSON() ([]byte, error)
type Value ¶
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:"-"` }
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.
func (*Value) MarshalJSON ¶
type Weight ¶
type Weight struct { // Unit: Required. The weight unit. Acceptable values are: - "kg" - // "lb" Unit string `json:"unit,omitempty"` // Value: Required. 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:"-"` }