Documentation ¶
Overview ¶
Package merchantapi provides access to the Merchant API.
For product documentation, see: https://developers.devsite.corp.google.com/merchant/api
Library status ¶
These client libraries are officially supported by Google. However, this library is considered complete and is in maintenance mode. This means that we will address critical bugs and security issues but will not add any new features.
When possible, we recommend using our newer [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go) that are still actively being worked and iterated on.
Creating a client ¶
Usage example:
import "google.golang.org/api/merchantapi/accounts_v1beta" ... ctx := context.Background() merchantapiService, err := merchantapi.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 google.golang.org/api/option.WithAPIKey:
merchantapiService, err := merchantapi.NewService(ctx, option.WithAPIKey("AIza..."))
To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow, use google.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...} // ... token, err := config.Exchange(ctx, ...) merchantapiService, err := merchantapi.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
See google.golang.org/api/option.ClientOption for details on options.
Index ¶
- Constants
- type APIService
- type AcceptTermsOfService
- type Accepted
- type Account
- type AccountIssue
- type AccountTax
- type AccountsAccounttaxGetCall
- func (c *AccountsAccounttaxGetCall) Context(ctx context.Context) *AccountsAccounttaxGetCall
- func (c *AccountsAccounttaxGetCall) Do(opts ...googleapi.CallOption) (*AccountTax, error)
- func (c *AccountsAccounttaxGetCall) Fields(s ...googleapi.Field) *AccountsAccounttaxGetCall
- func (c *AccountsAccounttaxGetCall) Header() http.Header
- func (c *AccountsAccounttaxGetCall) IfNoneMatch(entityTag string) *AccountsAccounttaxGetCall
- type AccountsAccounttaxListCall
- func (c *AccountsAccounttaxListCall) Context(ctx context.Context) *AccountsAccounttaxListCall
- func (c *AccountsAccounttaxListCall) Do(opts ...googleapi.CallOption) (*ListAccountTaxResponse, error)
- func (c *AccountsAccounttaxListCall) Fields(s ...googleapi.Field) *AccountsAccounttaxListCall
- func (c *AccountsAccounttaxListCall) Header() http.Header
- func (c *AccountsAccounttaxListCall) IfNoneMatch(entityTag string) *AccountsAccounttaxListCall
- func (c *AccountsAccounttaxListCall) PageSize(pageSize int64) *AccountsAccounttaxListCall
- func (c *AccountsAccounttaxListCall) PageToken(pageToken string) *AccountsAccounttaxListCall
- func (c *AccountsAccounttaxListCall) Pages(ctx context.Context, f func(*ListAccountTaxResponse) error) error
- type AccountsAccounttaxPatchCall
- func (c *AccountsAccounttaxPatchCall) Context(ctx context.Context) *AccountsAccounttaxPatchCall
- func (c *AccountsAccounttaxPatchCall) Do(opts ...googleapi.CallOption) (*AccountTax, error)
- func (c *AccountsAccounttaxPatchCall) Fields(s ...googleapi.Field) *AccountsAccounttaxPatchCall
- func (c *AccountsAccounttaxPatchCall) Header() http.Header
- func (c *AccountsAccounttaxPatchCall) UpdateMask(updateMask string) *AccountsAccounttaxPatchCall
- type AccountsAccounttaxService
- type AccountsCreateAndConfigureCall
- func (c *AccountsCreateAndConfigureCall) Context(ctx context.Context) *AccountsCreateAndConfigureCall
- func (c *AccountsCreateAndConfigureCall) Do(opts ...googleapi.CallOption) (*Account, error)
- func (c *AccountsCreateAndConfigureCall) Fields(s ...googleapi.Field) *AccountsCreateAndConfigureCall
- func (c *AccountsCreateAndConfigureCall) Header() http.Header
- type AccountsDeleteCall
- type AccountsGetBusinessIdentityCall
- func (c *AccountsGetBusinessIdentityCall) Context(ctx context.Context) *AccountsGetBusinessIdentityCall
- func (c *AccountsGetBusinessIdentityCall) Do(opts ...googleapi.CallOption) (*BusinessIdentity, error)
- func (c *AccountsGetBusinessIdentityCall) Fields(s ...googleapi.Field) *AccountsGetBusinessIdentityCall
- func (c *AccountsGetBusinessIdentityCall) Header() http.Header
- func (c *AccountsGetBusinessIdentityCall) IfNoneMatch(entityTag string) *AccountsGetBusinessIdentityCall
- type AccountsGetBusinessInfoCall
- func (c *AccountsGetBusinessInfoCall) Context(ctx context.Context) *AccountsGetBusinessInfoCall
- func (c *AccountsGetBusinessInfoCall) Do(opts ...googleapi.CallOption) (*BusinessInfo, error)
- func (c *AccountsGetBusinessInfoCall) Fields(s ...googleapi.Field) *AccountsGetBusinessInfoCall
- func (c *AccountsGetBusinessInfoCall) Header() http.Header
- func (c *AccountsGetBusinessInfoCall) IfNoneMatch(entityTag string) *AccountsGetBusinessInfoCall
- 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
- type AccountsGetHomepageCall
- func (c *AccountsGetHomepageCall) Context(ctx context.Context) *AccountsGetHomepageCall
- func (c *AccountsGetHomepageCall) Do(opts ...googleapi.CallOption) (*Homepage, error)
- func (c *AccountsGetHomepageCall) Fields(s ...googleapi.Field) *AccountsGetHomepageCall
- func (c *AccountsGetHomepageCall) Header() http.Header
- func (c *AccountsGetHomepageCall) IfNoneMatch(entityTag string) *AccountsGetHomepageCall
- type AccountsGetShippingSettingsCall
- func (c *AccountsGetShippingSettingsCall) Context(ctx context.Context) *AccountsGetShippingSettingsCall
- func (c *AccountsGetShippingSettingsCall) Do(opts ...googleapi.CallOption) (*ShippingSettings, error)
- func (c *AccountsGetShippingSettingsCall) Fields(s ...googleapi.Field) *AccountsGetShippingSettingsCall
- func (c *AccountsGetShippingSettingsCall) Header() http.Header
- func (c *AccountsGetShippingSettingsCall) IfNoneMatch(entityTag string) *AccountsGetShippingSettingsCall
- type AccountsHomepageClaimCall
- func (c *AccountsHomepageClaimCall) Context(ctx context.Context) *AccountsHomepageClaimCall
- func (c *AccountsHomepageClaimCall) Do(opts ...googleapi.CallOption) (*Homepage, error)
- func (c *AccountsHomepageClaimCall) Fields(s ...googleapi.Field) *AccountsHomepageClaimCall
- func (c *AccountsHomepageClaimCall) Header() http.Header
- type AccountsHomepageService
- type AccountsHomepageUnclaimCall
- func (c *AccountsHomepageUnclaimCall) Context(ctx context.Context) *AccountsHomepageUnclaimCall
- func (c *AccountsHomepageUnclaimCall) Do(opts ...googleapi.CallOption) (*Homepage, error)
- func (c *AccountsHomepageUnclaimCall) Fields(s ...googleapi.Field) *AccountsHomepageUnclaimCall
- func (c *AccountsHomepageUnclaimCall) Header() http.Header
- type AccountsIssuesListCall
- func (c *AccountsIssuesListCall) Context(ctx context.Context) *AccountsIssuesListCall
- func (c *AccountsIssuesListCall) Do(opts ...googleapi.CallOption) (*ListAccountIssuesResponse, error)
- func (c *AccountsIssuesListCall) Fields(s ...googleapi.Field) *AccountsIssuesListCall
- func (c *AccountsIssuesListCall) Header() http.Header
- func (c *AccountsIssuesListCall) IfNoneMatch(entityTag string) *AccountsIssuesListCall
- func (c *AccountsIssuesListCall) LanguageCode(languageCode string) *AccountsIssuesListCall
- func (c *AccountsIssuesListCall) PageSize(pageSize int64) *AccountsIssuesListCall
- func (c *AccountsIssuesListCall) PageToken(pageToken string) *AccountsIssuesListCall
- func (c *AccountsIssuesListCall) Pages(ctx context.Context, f func(*ListAccountIssuesResponse) error) error
- func (c *AccountsIssuesListCall) TimeZoneId(timeZoneId string) *AccountsIssuesListCall
- func (c *AccountsIssuesListCall) TimeZoneVersion(timeZoneVersion string) *AccountsIssuesListCall
- type AccountsIssuesService
- type AccountsListCall
- func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall
- func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*ListAccountsResponse, error)
- func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall
- func (c *AccountsListCall) Filter(filter string) *AccountsListCall
- func (c *AccountsListCall) Header() http.Header
- func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall
- func (c *AccountsListCall) PageSize(pageSize int64) *AccountsListCall
- func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall
- func (c *AccountsListCall) Pages(ctx context.Context, f func(*ListAccountsResponse) error) error
- type AccountsListSubaccountsCall
- func (c *AccountsListSubaccountsCall) Context(ctx context.Context) *AccountsListSubaccountsCall
- func (c *AccountsListSubaccountsCall) Do(opts ...googleapi.CallOption) (*ListSubAccountsResponse, error)
- func (c *AccountsListSubaccountsCall) Fields(s ...googleapi.Field) *AccountsListSubaccountsCall
- func (c *AccountsListSubaccountsCall) Header() http.Header
- func (c *AccountsListSubaccountsCall) IfNoneMatch(entityTag string) *AccountsListSubaccountsCall
- func (c *AccountsListSubaccountsCall) PageSize(pageSize int64) *AccountsListSubaccountsCall
- func (c *AccountsListSubaccountsCall) PageToken(pageToken string) *AccountsListSubaccountsCall
- func (c *AccountsListSubaccountsCall) Pages(ctx context.Context, f func(*ListSubAccountsResponse) error) error
- type AccountsOnlineReturnPoliciesGetCall
- func (c *AccountsOnlineReturnPoliciesGetCall) Context(ctx context.Context) *AccountsOnlineReturnPoliciesGetCall
- func (c *AccountsOnlineReturnPoliciesGetCall) Do(opts ...googleapi.CallOption) (*OnlineReturnPolicy, error)
- func (c *AccountsOnlineReturnPoliciesGetCall) Fields(s ...googleapi.Field) *AccountsOnlineReturnPoliciesGetCall
- func (c *AccountsOnlineReturnPoliciesGetCall) Header() http.Header
- func (c *AccountsOnlineReturnPoliciesGetCall) IfNoneMatch(entityTag string) *AccountsOnlineReturnPoliciesGetCall
- type AccountsOnlineReturnPoliciesListCall
- func (c *AccountsOnlineReturnPoliciesListCall) Context(ctx context.Context) *AccountsOnlineReturnPoliciesListCall
- func (c *AccountsOnlineReturnPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListOnlineReturnPoliciesResponse, error)
- func (c *AccountsOnlineReturnPoliciesListCall) Fields(s ...googleapi.Field) *AccountsOnlineReturnPoliciesListCall
- func (c *AccountsOnlineReturnPoliciesListCall) Header() http.Header
- func (c *AccountsOnlineReturnPoliciesListCall) IfNoneMatch(entityTag string) *AccountsOnlineReturnPoliciesListCall
- func (c *AccountsOnlineReturnPoliciesListCall) PageSize(pageSize int64) *AccountsOnlineReturnPoliciesListCall
- func (c *AccountsOnlineReturnPoliciesListCall) PageToken(pageToken string) *AccountsOnlineReturnPoliciesListCall
- func (c *AccountsOnlineReturnPoliciesListCall) Pages(ctx context.Context, f func(*ListOnlineReturnPoliciesResponse) error) error
- type AccountsOnlineReturnPoliciesService
- type AccountsPatchCall
- func (c *AccountsPatchCall) Context(ctx context.Context) *AccountsPatchCall
- func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error)
- func (c *AccountsPatchCall) Fields(s ...googleapi.Field) *AccountsPatchCall
- func (c *AccountsPatchCall) Header() http.Header
- func (c *AccountsPatchCall) UpdateMask(updateMask string) *AccountsPatchCall
- type AccountsProgramsDisableCall
- func (c *AccountsProgramsDisableCall) Context(ctx context.Context) *AccountsProgramsDisableCall
- func (c *AccountsProgramsDisableCall) Do(opts ...googleapi.CallOption) (*Program, error)
- func (c *AccountsProgramsDisableCall) Fields(s ...googleapi.Field) *AccountsProgramsDisableCall
- func (c *AccountsProgramsDisableCall) Header() http.Header
- type AccountsProgramsEnableCall
- func (c *AccountsProgramsEnableCall) Context(ctx context.Context) *AccountsProgramsEnableCall
- func (c *AccountsProgramsEnableCall) Do(opts ...googleapi.CallOption) (*Program, error)
- func (c *AccountsProgramsEnableCall) Fields(s ...googleapi.Field) *AccountsProgramsEnableCall
- func (c *AccountsProgramsEnableCall) Header() http.Header
- type AccountsProgramsGetCall
- func (c *AccountsProgramsGetCall) Context(ctx context.Context) *AccountsProgramsGetCall
- func (c *AccountsProgramsGetCall) Do(opts ...googleapi.CallOption) (*Program, error)
- func (c *AccountsProgramsGetCall) Fields(s ...googleapi.Field) *AccountsProgramsGetCall
- func (c *AccountsProgramsGetCall) Header() http.Header
- func (c *AccountsProgramsGetCall) IfNoneMatch(entityTag string) *AccountsProgramsGetCall
- type AccountsProgramsListCall
- func (c *AccountsProgramsListCall) Context(ctx context.Context) *AccountsProgramsListCall
- func (c *AccountsProgramsListCall) Do(opts ...googleapi.CallOption) (*ListProgramsResponse, error)
- func (c *AccountsProgramsListCall) Fields(s ...googleapi.Field) *AccountsProgramsListCall
- func (c *AccountsProgramsListCall) Header() http.Header
- func (c *AccountsProgramsListCall) IfNoneMatch(entityTag string) *AccountsProgramsListCall
- func (c *AccountsProgramsListCall) PageSize(pageSize int64) *AccountsProgramsListCall
- func (c *AccountsProgramsListCall) PageToken(pageToken string) *AccountsProgramsListCall
- func (c *AccountsProgramsListCall) Pages(ctx context.Context, f func(*ListProgramsResponse) error) error
- type AccountsProgramsService
- func (r *AccountsProgramsService) Disable(name string, disableprogramrequest *DisableProgramRequest) *AccountsProgramsDisableCall
- func (r *AccountsProgramsService) Enable(name string, enableprogramrequest *EnableProgramRequest) *AccountsProgramsEnableCall
- func (r *AccountsProgramsService) Get(name string) *AccountsProgramsGetCall
- func (r *AccountsProgramsService) List(parent string) *AccountsProgramsListCall
- type AccountsRegionsCreateCall
- func (c *AccountsRegionsCreateCall) Context(ctx context.Context) *AccountsRegionsCreateCall
- func (c *AccountsRegionsCreateCall) Do(opts ...googleapi.CallOption) (*Region, error)
- func (c *AccountsRegionsCreateCall) Fields(s ...googleapi.Field) *AccountsRegionsCreateCall
- func (c *AccountsRegionsCreateCall) Header() http.Header
- func (c *AccountsRegionsCreateCall) RegionId(regionId string) *AccountsRegionsCreateCall
- type AccountsRegionsDeleteCall
- func (c *AccountsRegionsDeleteCall) Context(ctx context.Context) *AccountsRegionsDeleteCall
- func (c *AccountsRegionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *AccountsRegionsDeleteCall) Fields(s ...googleapi.Field) *AccountsRegionsDeleteCall
- func (c *AccountsRegionsDeleteCall) Header() http.Header
- type AccountsRegionsGetCall
- func (c *AccountsRegionsGetCall) Context(ctx context.Context) *AccountsRegionsGetCall
- func (c *AccountsRegionsGetCall) Do(opts ...googleapi.CallOption) (*Region, error)
- func (c *AccountsRegionsGetCall) Fields(s ...googleapi.Field) *AccountsRegionsGetCall
- func (c *AccountsRegionsGetCall) Header() http.Header
- func (c *AccountsRegionsGetCall) IfNoneMatch(entityTag string) *AccountsRegionsGetCall
- type AccountsRegionsListCall
- func (c *AccountsRegionsListCall) Context(ctx context.Context) *AccountsRegionsListCall
- func (c *AccountsRegionsListCall) Do(opts ...googleapi.CallOption) (*ListRegionsResponse, error)
- func (c *AccountsRegionsListCall) Fields(s ...googleapi.Field) *AccountsRegionsListCall
- func (c *AccountsRegionsListCall) Header() http.Header
- func (c *AccountsRegionsListCall) IfNoneMatch(entityTag string) *AccountsRegionsListCall
- func (c *AccountsRegionsListCall) PageSize(pageSize int64) *AccountsRegionsListCall
- func (c *AccountsRegionsListCall) PageToken(pageToken string) *AccountsRegionsListCall
- func (c *AccountsRegionsListCall) Pages(ctx context.Context, f func(*ListRegionsResponse) error) error
- type AccountsRegionsPatchCall
- func (c *AccountsRegionsPatchCall) Context(ctx context.Context) *AccountsRegionsPatchCall
- func (c *AccountsRegionsPatchCall) Do(opts ...googleapi.CallOption) (*Region, error)
- func (c *AccountsRegionsPatchCall) Fields(s ...googleapi.Field) *AccountsRegionsPatchCall
- func (c *AccountsRegionsPatchCall) Header() http.Header
- func (c *AccountsRegionsPatchCall) UpdateMask(updateMask string) *AccountsRegionsPatchCall
- type AccountsRegionsService
- func (r *AccountsRegionsService) Create(parent string, region *Region) *AccountsRegionsCreateCall
- func (r *AccountsRegionsService) Delete(name string) *AccountsRegionsDeleteCall
- func (r *AccountsRegionsService) Get(name string) *AccountsRegionsGetCall
- func (r *AccountsRegionsService) List(parent string) *AccountsRegionsListCall
- func (r *AccountsRegionsService) Patch(name string, region *Region) *AccountsRegionsPatchCall
- type AccountsService
- func (r *AccountsService) CreateAndConfigure(createandconfigureaccountrequest *CreateAndConfigureAccountRequest) *AccountsCreateAndConfigureCall
- func (r *AccountsService) Delete(name string) *AccountsDeleteCall
- func (r *AccountsService) Get(name string) *AccountsGetCall
- func (r *AccountsService) GetBusinessIdentity(name string) *AccountsGetBusinessIdentityCall
- func (r *AccountsService) GetBusinessInfo(name string) *AccountsGetBusinessInfoCall
- func (r *AccountsService) GetHomepage(name string) *AccountsGetHomepageCall
- func (r *AccountsService) GetShippingSettings(name string) *AccountsGetShippingSettingsCall
- func (r *AccountsService) List() *AccountsListCall
- func (r *AccountsService) ListSubaccounts(provider string) *AccountsListSubaccountsCall
- func (r *AccountsService) Patch(name string, account *Account) *AccountsPatchCall
- func (r *AccountsService) UpdateBusinessIdentity(name string, businessidentity *BusinessIdentity) *AccountsUpdateBusinessIdentityCall
- func (r *AccountsService) UpdateBusinessInfo(name string, businessinfo *BusinessInfo) *AccountsUpdateBusinessInfoCall
- func (r *AccountsService) UpdateHomepage(name string, homepage *Homepage) *AccountsUpdateHomepageCall
- type AccountsShippingSettingsInsertCall
- func (c *AccountsShippingSettingsInsertCall) Context(ctx context.Context) *AccountsShippingSettingsInsertCall
- func (c *AccountsShippingSettingsInsertCall) Do(opts ...googleapi.CallOption) (*ShippingSettings, error)
- func (c *AccountsShippingSettingsInsertCall) Fields(s ...googleapi.Field) *AccountsShippingSettingsInsertCall
- func (c *AccountsShippingSettingsInsertCall) Header() http.Header
- type AccountsShippingSettingsService
- type AccountsTermsOfServiceAgreementStatesGetCall
- func (c *AccountsTermsOfServiceAgreementStatesGetCall) Context(ctx context.Context) *AccountsTermsOfServiceAgreementStatesGetCall
- func (c *AccountsTermsOfServiceAgreementStatesGetCall) Do(opts ...googleapi.CallOption) (*TermsOfServiceAgreementState, error)
- func (c *AccountsTermsOfServiceAgreementStatesGetCall) Fields(s ...googleapi.Field) *AccountsTermsOfServiceAgreementStatesGetCall
- func (c *AccountsTermsOfServiceAgreementStatesGetCall) Header() http.Header
- func (c *AccountsTermsOfServiceAgreementStatesGetCall) IfNoneMatch(entityTag string) *AccountsTermsOfServiceAgreementStatesGetCall
- type AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall
- func (c *AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall) Context(ctx context.Context) *AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall
- func (c *AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall) Do(opts ...googleapi.CallOption) (*TermsOfServiceAgreementState, error)
- func (c *AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall) Fields(s ...googleapi.Field) *AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall
- func (c *AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall) Header() http.Header
- func (c *AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall) IfNoneMatch(entityTag string) *AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall
- type AccountsTermsOfServiceAgreementStatesService
- type AccountsUpdateBusinessIdentityCall
- func (c *AccountsUpdateBusinessIdentityCall) Context(ctx context.Context) *AccountsUpdateBusinessIdentityCall
- func (c *AccountsUpdateBusinessIdentityCall) Do(opts ...googleapi.CallOption) (*BusinessIdentity, error)
- func (c *AccountsUpdateBusinessIdentityCall) Fields(s ...googleapi.Field) *AccountsUpdateBusinessIdentityCall
- func (c *AccountsUpdateBusinessIdentityCall) Header() http.Header
- func (c *AccountsUpdateBusinessIdentityCall) UpdateMask(updateMask string) *AccountsUpdateBusinessIdentityCall
- type AccountsUpdateBusinessInfoCall
- func (c *AccountsUpdateBusinessInfoCall) Context(ctx context.Context) *AccountsUpdateBusinessInfoCall
- func (c *AccountsUpdateBusinessInfoCall) Do(opts ...googleapi.CallOption) (*BusinessInfo, error)
- func (c *AccountsUpdateBusinessInfoCall) Fields(s ...googleapi.Field) *AccountsUpdateBusinessInfoCall
- func (c *AccountsUpdateBusinessInfoCall) Header() http.Header
- func (c *AccountsUpdateBusinessInfoCall) UpdateMask(updateMask string) *AccountsUpdateBusinessInfoCall
- type AccountsUpdateHomepageCall
- func (c *AccountsUpdateHomepageCall) Context(ctx context.Context) *AccountsUpdateHomepageCall
- func (c *AccountsUpdateHomepageCall) Do(opts ...googleapi.CallOption) (*Homepage, error)
- func (c *AccountsUpdateHomepageCall) Fields(s ...googleapi.Field) *AccountsUpdateHomepageCall
- func (c *AccountsUpdateHomepageCall) Header() http.Header
- func (c *AccountsUpdateHomepageCall) UpdateMask(updateMask string) *AccountsUpdateHomepageCall
- type AccountsUsersCreateCall
- func (c *AccountsUsersCreateCall) Context(ctx context.Context) *AccountsUsersCreateCall
- func (c *AccountsUsersCreateCall) Do(opts ...googleapi.CallOption) (*User, error)
- func (c *AccountsUsersCreateCall) Fields(s ...googleapi.Field) *AccountsUsersCreateCall
- func (c *AccountsUsersCreateCall) Header() http.Header
- func (c *AccountsUsersCreateCall) UserId(userId string) *AccountsUsersCreateCall
- type AccountsUsersDeleteCall
- func (c *AccountsUsersDeleteCall) Context(ctx context.Context) *AccountsUsersDeleteCall
- func (c *AccountsUsersDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *AccountsUsersDeleteCall) Fields(s ...googleapi.Field) *AccountsUsersDeleteCall
- func (c *AccountsUsersDeleteCall) Header() http.Header
- type AccountsUsersGetCall
- func (c *AccountsUsersGetCall) Context(ctx context.Context) *AccountsUsersGetCall
- func (c *AccountsUsersGetCall) Do(opts ...googleapi.CallOption) (*User, error)
- func (c *AccountsUsersGetCall) Fields(s ...googleapi.Field) *AccountsUsersGetCall
- func (c *AccountsUsersGetCall) Header() http.Header
- func (c *AccountsUsersGetCall) IfNoneMatch(entityTag string) *AccountsUsersGetCall
- type AccountsUsersGetEmailPreferencesCall
- func (c *AccountsUsersGetEmailPreferencesCall) Context(ctx context.Context) *AccountsUsersGetEmailPreferencesCall
- func (c *AccountsUsersGetEmailPreferencesCall) Do(opts ...googleapi.CallOption) (*EmailPreferences, error)
- func (c *AccountsUsersGetEmailPreferencesCall) Fields(s ...googleapi.Field) *AccountsUsersGetEmailPreferencesCall
- func (c *AccountsUsersGetEmailPreferencesCall) Header() http.Header
- func (c *AccountsUsersGetEmailPreferencesCall) IfNoneMatch(entityTag string) *AccountsUsersGetEmailPreferencesCall
- type AccountsUsersListCall
- func (c *AccountsUsersListCall) Context(ctx context.Context) *AccountsUsersListCall
- func (c *AccountsUsersListCall) Do(opts ...googleapi.CallOption) (*ListUsersResponse, error)
- func (c *AccountsUsersListCall) Fields(s ...googleapi.Field) *AccountsUsersListCall
- func (c *AccountsUsersListCall) Header() http.Header
- func (c *AccountsUsersListCall) IfNoneMatch(entityTag string) *AccountsUsersListCall
- func (c *AccountsUsersListCall) PageSize(pageSize int64) *AccountsUsersListCall
- func (c *AccountsUsersListCall) PageToken(pageToken string) *AccountsUsersListCall
- func (c *AccountsUsersListCall) Pages(ctx context.Context, f func(*ListUsersResponse) error) error
- type AccountsUsersPatchCall
- func (c *AccountsUsersPatchCall) Context(ctx context.Context) *AccountsUsersPatchCall
- func (c *AccountsUsersPatchCall) Do(opts ...googleapi.CallOption) (*User, error)
- func (c *AccountsUsersPatchCall) Fields(s ...googleapi.Field) *AccountsUsersPatchCall
- func (c *AccountsUsersPatchCall) Header() http.Header
- func (c *AccountsUsersPatchCall) UpdateMask(updateMask string) *AccountsUsersPatchCall
- type AccountsUsersService
- func (r *AccountsUsersService) Create(parent string, user *User) *AccountsUsersCreateCall
- func (r *AccountsUsersService) Delete(name string) *AccountsUsersDeleteCall
- func (r *AccountsUsersService) Get(name string) *AccountsUsersGetCall
- func (r *AccountsUsersService) GetEmailPreferences(name string) *AccountsUsersGetEmailPreferencesCall
- func (r *AccountsUsersService) List(parent string) *AccountsUsersListCall
- func (r *AccountsUsersService) Patch(name string, user *User) *AccountsUsersPatchCall
- func (r *AccountsUsersService) UpdateEmailPreferences(name string, emailpreferences *EmailPreferences) *AccountsUsersUpdateEmailPreferencesCall
- type AccountsUsersUpdateEmailPreferencesCall
- func (c *AccountsUsersUpdateEmailPreferencesCall) Context(ctx context.Context) *AccountsUsersUpdateEmailPreferencesCall
- func (c *AccountsUsersUpdateEmailPreferencesCall) Do(opts ...googleapi.CallOption) (*EmailPreferences, error)
- func (c *AccountsUsersUpdateEmailPreferencesCall) Fields(s ...googleapi.Field) *AccountsUsersUpdateEmailPreferencesCall
- func (c *AccountsUsersUpdateEmailPreferencesCall) Header() http.Header
- func (c *AccountsUsersUpdateEmailPreferencesCall) UpdateMask(updateMask string) *AccountsUsersUpdateEmailPreferencesCall
- type AddAccountService
- type Address
- type BusinessDayConfig
- type BusinessIdentity
- type BusinessInfo
- type CarrierRate
- type ClaimHomepageRequest
- type CreateAndConfigureAccountRequest
- type CreateUserRequest
- type CustomerService
- type CutoffConfig
- type CutoffTime
- type Date
- type DeliveryTime
- type DisableProgramRequest
- type Distance
- type EmailPreferences
- type Empty
- type EnableProgramRequest
- type GeoTargetArea
- type Headers
- type Homepage
- type IdentityAttribute
- type Impact
- type ImpactedDestination
- type Interval
- type ListAccountIssuesResponse
- type ListAccountTaxResponse
- type ListAccountsResponse
- type ListOnlineReturnPoliciesResponse
- type ListProgramsResponse
- type ListRegionsResponse
- type ListSubAccountsResponse
- type ListUsersResponse
- type LocalCutoffTime
- type LocationIdSet
- type LoyaltyProgram
- type LoyaltyProgramTiers
- type MinimumOrderValueTable
- type OnlineReturnPolicy
- type PhoneNumber
- type Policy
- type PostalAddress
- type PostalCodeArea
- type PostalCodeRange
- type Price
- type ProductChange
- type ProductStatusChangeMessage
- type Program
- type RateGroup
- type Region
- type Required
- type Requirement
- type RestockingFee
- type ReturnShippingFee
- type Row
- type Service
- type ShippingSettings
- type ShortCode
- type StoreCodeSetWithMov
- type StoreConfig
- type Table
- type TaxPostalCodeRange
- type TaxRule
- type TermsOfService
- type TermsOfServiceAcceptCall
- func (c *TermsOfServiceAcceptCall) Account(account string) *TermsOfServiceAcceptCall
- func (c *TermsOfServiceAcceptCall) Context(ctx context.Context) *TermsOfServiceAcceptCall
- func (c *TermsOfServiceAcceptCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *TermsOfServiceAcceptCall) Fields(s ...googleapi.Field) *TermsOfServiceAcceptCall
- func (c *TermsOfServiceAcceptCall) Header() http.Header
- func (c *TermsOfServiceAcceptCall) IfNoneMatch(entityTag string) *TermsOfServiceAcceptCall
- func (c *TermsOfServiceAcceptCall) RegionCode(regionCode string) *TermsOfServiceAcceptCall
- type TermsOfServiceAgreementState
- type TermsOfServiceGetCall
- func (c *TermsOfServiceGetCall) Context(ctx context.Context) *TermsOfServiceGetCall
- func (c *TermsOfServiceGetCall) Do(opts ...googleapi.CallOption) (*TermsOfService, error)
- func (c *TermsOfServiceGetCall) Fields(s ...googleapi.Field) *TermsOfServiceGetCall
- func (c *TermsOfServiceGetCall) Header() http.Header
- func (c *TermsOfServiceGetCall) IfNoneMatch(entityTag string) *TermsOfServiceGetCall
- type TermsOfServiceRetrieveLatestCall
- func (c *TermsOfServiceRetrieveLatestCall) Context(ctx context.Context) *TermsOfServiceRetrieveLatestCall
- func (c *TermsOfServiceRetrieveLatestCall) Do(opts ...googleapi.CallOption) (*TermsOfService, error)
- func (c *TermsOfServiceRetrieveLatestCall) Fields(s ...googleapi.Field) *TermsOfServiceRetrieveLatestCall
- func (c *TermsOfServiceRetrieveLatestCall) Header() http.Header
- func (c *TermsOfServiceRetrieveLatestCall) IfNoneMatch(entityTag string) *TermsOfServiceRetrieveLatestCall
- func (c *TermsOfServiceRetrieveLatestCall) Kind(kind string) *TermsOfServiceRetrieveLatestCall
- func (c *TermsOfServiceRetrieveLatestCall) RegionCode(regionCode string) *TermsOfServiceRetrieveLatestCall
- type TermsOfServiceService
- type TimeZone
- type TransitTable
- type TransitTimeRow
- type TransitTimeValue
- type UnclaimHomepageRequest
- type User
- type Value
- type Warehouse
- type WarehouseBasedDeliveryTime
- type WarehouseCutoffTime
- 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 TermsOfService *TermsOfServiceService // 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 ¶
func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, error)
NewService creates a new APIService.
type AcceptTermsOfService ¶
type AcceptTermsOfService struct { // Name: Required. The resource name of the terms of service version. Name string `json:"name,omitempty"` // RegionCode: Required. Region code as defined by CLDR // (https://cldr.unicode.org/). This is either a country when the ToS applies // specifically to that country or `001` when it applies globally. RegionCode string `json:"regionCode,omitempty"` // ForceSendFields is a list of field names (e.g. "Name") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
AcceptTermsOfService: Reference to a Terms of Service resource.
func (*AcceptTermsOfService) MarshalJSON ¶
func (s *AcceptTermsOfService) MarshalJSON() ([]byte, error)
type Accepted ¶
type Accepted struct { // AcceptedBy: The account where the acceptance was recorded. This can be the // account itself or, in the case of subaccounts, the MCA account. AcceptedBy string `json:"acceptedBy,omitempty"` // TermsOfService: The accepted termsOfService // (google.shopping.merchant.accounts.v1main.TermsOfService). TermsOfService string `json:"termsOfService,omitempty"` // ValidUntil: When set, it states that the accepted TermsOfService // (google.shopping.merchant.accounts.v1main.TermsOfService) is only valid // until the end of this date (in UTC). A new one must be accepted before then. // The information of the required TermsOfService // (google.shopping.merchant.accounts.v1main.TermsOfService) is found in the // Required (Required) message. ValidUntil *Date `json:"validUntil,omitempty"` // ForceSendFields is a list of field names (e.g. "AcceptedBy") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AcceptedBy") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Accepted: Describes the accepted terms of service.
func (*Accepted) MarshalJSON ¶
type Account ¶
type Account struct { // AccountId: Output only. The ID of the account. AccountId int64 `json:"accountId,omitempty,string"` // AccountName: Required. A human-readable name of the account. See store name // (https://support.google.com/merchants/answer/160556) and business name // (https://support.google.com/merchants/answer/12159159) for more information. AccountName string `json:"accountName,omitempty"` // AdultContent: Whether this account contains adult content. AdultContent bool `json:"adultContent,omitempty"` // LanguageCode: Required. The account's BCP-47 language code // (https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`. LanguageCode string `json:"languageCode,omitempty"` // Name: Identifier. The resource name of the account. Format: // `accounts/{account}` Name string `json:"name,omitempty"` // TestAccount: Output only. Whether this is a test account. TestAccount bool `json:"testAccount,omitempty"` // TimeZone: Required. The time zone of the account. On writes, `time_zone` // sets both the `reporting_time_zone` and the `display_time_zone`. For reads, // `time_zone` always returns the `display_time_zone`. If `display_time_zone` // doesn't exist for your account, `time_zone` is empty. TimeZone *TimeZone `json:"timeZone,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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Account: An account.
func (*Account) MarshalJSON ¶
type AccountIssue ¶
type AccountIssue struct { // Detail: Further localized details about the issue. Detail string `json:"detail,omitempty"` // DocumentationUri: Link to Merchant Center Help Center providing further // information about the issue and how to fix it. DocumentationUri string `json:"documentationUri,omitempty"` // ImpactedDestinations: The impact this issue has on various destinations. ImpactedDestinations []*ImpactedDestination `json:"impactedDestinations,omitempty"` // Name: Identifier. The resource name of the account issue. Format: // `accounts/{account}/issues/{id}` Name string `json:"name,omitempty"` // Severity: The overall severity of the issue. // // Possible values: // "SEVERITY_UNSPECIFIED" - The severity is unknown. // "CRITICAL" - The issue causes offers to not serve. // "ERROR" - The issue might affect offers (in the future) or might be an // indicator of issues with offers. // "SUGGESTION" - The issue is a suggestion for improvement. Severity string `json:"severity,omitempty"` // Title: The localized title of the issue. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "Detail") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Detail") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
AccountIssue: An `AccountIssue` (https://support.google.com/merchants/answer/12153802?sjid=17798438912526418908-EU#account).
func (*AccountIssue) MarshalJSON ¶
func (s *AccountIssue) MarshalJSON() ([]byte, error)
type AccountTax ¶
type AccountTax struct { // Account: Output only. The ID of the account to which these account tax // settings belong. Account int64 `json:"account,omitempty,string"` // Name: Identifier. The name of the tax setting. Format: // "{account_tax.name=accounts/{account}}" Name string `json:"name,omitempty"` // TaxRules: Tax rules. "Define the tax rules in each region. No tax will be // presented if a region has no rule." TaxRules []*TaxRule `json:"taxRules,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Account") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 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 AccountsAccounttaxGetCall ¶
type AccountsAccounttaxGetCall struct {
// contains filtered or unexported fields
}
func (*AccountsAccounttaxGetCall) Context ¶
func (c *AccountsAccounttaxGetCall) Context(ctx context.Context) *AccountsAccounttaxGetCall
Context sets the context to be used in this call's Do method.
func (*AccountsAccounttaxGetCall) Do ¶
func (c *AccountsAccounttaxGetCall) Do(opts ...googleapi.CallOption) (*AccountTax, error)
Do executes the "merchantapi.accounts.accounttax.get" call. 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 (*AccountsAccounttaxGetCall) Fields ¶
func (c *AccountsAccounttaxGetCall) Fields(s ...googleapi.Field) *AccountsAccounttaxGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsAccounttaxGetCall) Header ¶
func (c *AccountsAccounttaxGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsAccounttaxGetCall) IfNoneMatch ¶
func (c *AccountsAccounttaxGetCall) IfNoneMatch(entityTag string) *AccountsAccounttaxGetCall
IfNoneMatch sets an 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.
type AccountsAccounttaxListCall ¶
type AccountsAccounttaxListCall struct {
// contains filtered or unexported fields
}
func (*AccountsAccounttaxListCall) Context ¶
func (c *AccountsAccounttaxListCall) Context(ctx context.Context) *AccountsAccounttaxListCall
Context sets the context to be used in this call's Do method.
func (*AccountsAccounttaxListCall) Do ¶
func (c *AccountsAccounttaxListCall) Do(opts ...googleapi.CallOption) (*ListAccountTaxResponse, error)
Do executes the "merchantapi.accounts.accounttax.list" call. Any non-2xx status code is an error. Response headers are in either *ListAccountTaxResponse.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 (*AccountsAccounttaxListCall) Fields ¶
func (c *AccountsAccounttaxListCall) Fields(s ...googleapi.Field) *AccountsAccounttaxListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsAccounttaxListCall) Header ¶
func (c *AccountsAccounttaxListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsAccounttaxListCall) IfNoneMatch ¶
func (c *AccountsAccounttaxListCall) IfNoneMatch(entityTag string) *AccountsAccounttaxListCall
IfNoneMatch sets an 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.
func (*AccountsAccounttaxListCall) PageSize ¶
func (c *AccountsAccounttaxListCall) PageSize(pageSize int64) *AccountsAccounttaxListCall
PageSize sets the optional parameter "pageSize": The maximum number of tax settings to return in the response, used for paging.
func (*AccountsAccounttaxListCall) PageToken ¶
func (c *AccountsAccounttaxListCall) PageToken(pageToken string) *AccountsAccounttaxListCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
func (*AccountsAccounttaxListCall) Pages ¶
func (c *AccountsAccounttaxListCall) Pages(ctx context.Context, f func(*ListAccountTaxResponse) 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 AccountsAccounttaxPatchCall ¶
type AccountsAccounttaxPatchCall struct {
// contains filtered or unexported fields
}
func (*AccountsAccounttaxPatchCall) Context ¶
func (c *AccountsAccounttaxPatchCall) Context(ctx context.Context) *AccountsAccounttaxPatchCall
Context sets the context to be used in this call's Do method.
func (*AccountsAccounttaxPatchCall) Do ¶
func (c *AccountsAccounttaxPatchCall) Do(opts ...googleapi.CallOption) (*AccountTax, error)
Do executes the "merchantapi.accounts.accounttax.patch" call. 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 (*AccountsAccounttaxPatchCall) Fields ¶
func (c *AccountsAccounttaxPatchCall) Fields(s ...googleapi.Field) *AccountsAccounttaxPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsAccounttaxPatchCall) Header ¶
func (c *AccountsAccounttaxPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsAccounttaxPatchCall) UpdateMask ¶
func (c *AccountsAccounttaxPatchCall) UpdateMask(updateMask string) *AccountsAccounttaxPatchCall
UpdateMask sets the optional parameter "updateMask": The list of fields to be updated
type AccountsAccounttaxService ¶
type AccountsAccounttaxService struct {
// contains filtered or unexported fields
}
func NewAccountsAccounttaxService ¶
func NewAccountsAccounttaxService(s *APIService) *AccountsAccounttaxService
func (*AccountsAccounttaxService) Get ¶
func (r *AccountsAccounttaxService) Get(name string) *AccountsAccounttaxGetCall
Get: Returns the tax rules that match the conditions of GetAccountTaxRequest
- name: The name from which tax settings will be retrieved.
func (*AccountsAccounttaxService) List ¶
func (r *AccountsAccounttaxService) List(parent string) *AccountsAccounttaxListCall
List: Lists the tax settings of the sub-accounts only in your Merchant Center account. This method can only be called on a multi-client account, otherwise it'll return an error.
- parent: The parent, which owns this collection of account tax. Format: accounts/{account}.
func (*AccountsAccounttaxService) Patch ¶
func (r *AccountsAccounttaxService) Patch(name string, accounttax *AccountTax) *AccountsAccounttaxPatchCall
Patch: Updates the tax settings of the account.
- name: Identifier. The name of the tax setting. Format: "{account_tax.name=accounts/{account}}".
type AccountsCreateAndConfigureCall ¶
type AccountsCreateAndConfigureCall struct {
// contains filtered or unexported fields
}
func (*AccountsCreateAndConfigureCall) Context ¶
func (c *AccountsCreateAndConfigureCall) Context(ctx context.Context) *AccountsCreateAndConfigureCall
Context sets the context to be used in this call's Do method.
func (*AccountsCreateAndConfigureCall) Do ¶
func (c *AccountsCreateAndConfigureCall) Do(opts ...googleapi.CallOption) (*Account, error)
Do executes the "merchantapi.accounts.createAndConfigure" call. 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 (*AccountsCreateAndConfigureCall) Fields ¶
func (c *AccountsCreateAndConfigureCall) Fields(s ...googleapi.Field) *AccountsCreateAndConfigureCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsCreateAndConfigureCall) Header ¶
func (c *AccountsCreateAndConfigureCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add 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.
func (*AccountsDeleteCall) Do ¶
func (c *AccountsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "merchantapi.accounts.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*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 details.
func (*AccountsDeleteCall) Header ¶
func (c *AccountsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type AccountsGetBusinessIdentityCall ¶
type AccountsGetBusinessIdentityCall struct {
// contains filtered or unexported fields
}
func (*AccountsGetBusinessIdentityCall) Context ¶
func (c *AccountsGetBusinessIdentityCall) Context(ctx context.Context) *AccountsGetBusinessIdentityCall
Context sets the context to be used in this call's Do method.
func (*AccountsGetBusinessIdentityCall) Do ¶
func (c *AccountsGetBusinessIdentityCall) Do(opts ...googleapi.CallOption) (*BusinessIdentity, error)
Do executes the "merchantapi.accounts.getBusinessIdentity" call. Any non-2xx status code is an error. Response headers are in either *BusinessIdentity.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 (*AccountsGetBusinessIdentityCall) Fields ¶
func (c *AccountsGetBusinessIdentityCall) Fields(s ...googleapi.Field) *AccountsGetBusinessIdentityCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsGetBusinessIdentityCall) Header ¶
func (c *AccountsGetBusinessIdentityCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsGetBusinessIdentityCall) IfNoneMatch ¶
func (c *AccountsGetBusinessIdentityCall) IfNoneMatch(entityTag string) *AccountsGetBusinessIdentityCall
IfNoneMatch sets an 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.
type AccountsGetBusinessInfoCall ¶
type AccountsGetBusinessInfoCall struct {
// contains filtered or unexported fields
}
func (*AccountsGetBusinessInfoCall) Context ¶
func (c *AccountsGetBusinessInfoCall) Context(ctx context.Context) *AccountsGetBusinessInfoCall
Context sets the context to be used in this call's Do method.
func (*AccountsGetBusinessInfoCall) Do ¶
func (c *AccountsGetBusinessInfoCall) Do(opts ...googleapi.CallOption) (*BusinessInfo, error)
Do executes the "merchantapi.accounts.getBusinessInfo" call. Any non-2xx status code is an error. Response headers are in either *BusinessInfo.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 (*AccountsGetBusinessInfoCall) Fields ¶
func (c *AccountsGetBusinessInfoCall) Fields(s ...googleapi.Field) *AccountsGetBusinessInfoCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsGetBusinessInfoCall) Header ¶
func (c *AccountsGetBusinessInfoCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsGetBusinessInfoCall) IfNoneMatch ¶
func (c *AccountsGetBusinessInfoCall) IfNoneMatch(entityTag string) *AccountsGetBusinessInfoCall
IfNoneMatch sets an 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.
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.
func (*AccountsGetCall) Do ¶
func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error)
Do executes the "merchantapi.accounts.get" call. 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 details.
func (*AccountsGetCall) Header ¶
func (c *AccountsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsGetCall) IfNoneMatch ¶
func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall
IfNoneMatch sets an 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.
type AccountsGetHomepageCall ¶
type AccountsGetHomepageCall struct {
// contains filtered or unexported fields
}
func (*AccountsGetHomepageCall) Context ¶
func (c *AccountsGetHomepageCall) Context(ctx context.Context) *AccountsGetHomepageCall
Context sets the context to be used in this call's Do method.
func (*AccountsGetHomepageCall) Do ¶
func (c *AccountsGetHomepageCall) Do(opts ...googleapi.CallOption) (*Homepage, error)
Do executes the "merchantapi.accounts.getHomepage" call. Any non-2xx status code is an error. Response headers are in either *Homepage.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 (*AccountsGetHomepageCall) Fields ¶
func (c *AccountsGetHomepageCall) Fields(s ...googleapi.Field) *AccountsGetHomepageCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsGetHomepageCall) Header ¶
func (c *AccountsGetHomepageCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsGetHomepageCall) IfNoneMatch ¶
func (c *AccountsGetHomepageCall) IfNoneMatch(entityTag string) *AccountsGetHomepageCall
IfNoneMatch sets an 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.
type AccountsGetShippingSettingsCall ¶
type AccountsGetShippingSettingsCall struct {
// contains filtered or unexported fields
}
func (*AccountsGetShippingSettingsCall) Context ¶
func (c *AccountsGetShippingSettingsCall) Context(ctx context.Context) *AccountsGetShippingSettingsCall
Context sets the context to be used in this call's Do method.
func (*AccountsGetShippingSettingsCall) Do ¶
func (c *AccountsGetShippingSettingsCall) Do(opts ...googleapi.CallOption) (*ShippingSettings, error)
Do executes the "merchantapi.accounts.getShippingSettings" call. 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 (*AccountsGetShippingSettingsCall) Fields ¶
func (c *AccountsGetShippingSettingsCall) Fields(s ...googleapi.Field) *AccountsGetShippingSettingsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsGetShippingSettingsCall) Header ¶
func (c *AccountsGetShippingSettingsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsGetShippingSettingsCall) IfNoneMatch ¶
func (c *AccountsGetShippingSettingsCall) IfNoneMatch(entityTag string) *AccountsGetShippingSettingsCall
IfNoneMatch sets an 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.
type AccountsHomepageClaimCall ¶
type AccountsHomepageClaimCall struct {
// contains filtered or unexported fields
}
func (*AccountsHomepageClaimCall) Context ¶
func (c *AccountsHomepageClaimCall) Context(ctx context.Context) *AccountsHomepageClaimCall
Context sets the context to be used in this call's Do method.
func (*AccountsHomepageClaimCall) Do ¶
func (c *AccountsHomepageClaimCall) Do(opts ...googleapi.CallOption) (*Homepage, error)
Do executes the "merchantapi.accounts.homepage.claim" call. Any non-2xx status code is an error. Response headers are in either *Homepage.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 (*AccountsHomepageClaimCall) Fields ¶
func (c *AccountsHomepageClaimCall) Fields(s ...googleapi.Field) *AccountsHomepageClaimCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsHomepageClaimCall) Header ¶
func (c *AccountsHomepageClaimCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type AccountsHomepageService ¶
type AccountsHomepageService struct {
// contains filtered or unexported fields
}
func NewAccountsHomepageService ¶
func NewAccountsHomepageService(s *APIService) *AccountsHomepageService
func (*AccountsHomepageService) Claim ¶
func (r *AccountsHomepageService) Claim(name string, claimhomepagerequest *ClaimHomepageRequest) *AccountsHomepageClaimCall
Claim: Claims a store's homepage. Executing this method requires admin access. If the homepage is already claimed, this will recheck the verification (unless the merchant is exempted from claiming, which also exempts from verification) and return a successful response. If ownership can no longer be verified, it will return an error, but it won't clear the claim. In case of failure, a canonical error message will be returned: * PERMISSION_DENIED: user doesn't have the necessary permissions on this MC account; * FAILED_PRECONDITION: - The account is not a Merchant Center account; - MC account doesn't have a homepage; - claiming failed (in this case the error message will contain more details).
- name: The name of the homepage to claim. Format: `accounts/{account}/homepage`.
func (*AccountsHomepageService) Unclaim ¶
func (r *AccountsHomepageService) Unclaim(name string, unclaimhomepagerequest *UnclaimHomepageRequest) *AccountsHomepageUnclaimCall
Unclaim: Unclaims a store's homepage. Executing this method requires admin access.
- name: The name of the homepage to unclaim. Format: `accounts/{account}/homepage`.
type AccountsHomepageUnclaimCall ¶
type AccountsHomepageUnclaimCall struct {
// contains filtered or unexported fields
}
func (*AccountsHomepageUnclaimCall) Context ¶
func (c *AccountsHomepageUnclaimCall) Context(ctx context.Context) *AccountsHomepageUnclaimCall
Context sets the context to be used in this call's Do method.
func (*AccountsHomepageUnclaimCall) Do ¶
func (c *AccountsHomepageUnclaimCall) Do(opts ...googleapi.CallOption) (*Homepage, error)
Do executes the "merchantapi.accounts.homepage.unclaim" call. Any non-2xx status code is an error. Response headers are in either *Homepage.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 (*AccountsHomepageUnclaimCall) Fields ¶
func (c *AccountsHomepageUnclaimCall) Fields(s ...googleapi.Field) *AccountsHomepageUnclaimCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsHomepageUnclaimCall) Header ¶
func (c *AccountsHomepageUnclaimCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type AccountsIssuesListCall ¶
type AccountsIssuesListCall struct {
// contains filtered or unexported fields
}
func (*AccountsIssuesListCall) Context ¶
func (c *AccountsIssuesListCall) Context(ctx context.Context) *AccountsIssuesListCall
Context sets the context to be used in this call's Do method.
func (*AccountsIssuesListCall) Do ¶
func (c *AccountsIssuesListCall) Do(opts ...googleapi.CallOption) (*ListAccountIssuesResponse, error)
Do executes the "merchantapi.accounts.issues.list" call. Any non-2xx status code is an error. Response headers are in either *ListAccountIssuesResponse.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 (*AccountsIssuesListCall) Fields ¶
func (c *AccountsIssuesListCall) Fields(s ...googleapi.Field) *AccountsIssuesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsIssuesListCall) Header ¶
func (c *AccountsIssuesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsIssuesListCall) IfNoneMatch ¶
func (c *AccountsIssuesListCall) IfNoneMatch(entityTag string) *AccountsIssuesListCall
IfNoneMatch sets an 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.
func (*AccountsIssuesListCall) LanguageCode ¶
func (c *AccountsIssuesListCall) LanguageCode(languageCode string) *AccountsIssuesListCall
LanguageCode sets the optional parameter "languageCode": The issues in the response will have human-readable fields in the given language. The format is BCP-47 (https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`. If not value is provided, `en-US` will be used.
func (*AccountsIssuesListCall) PageSize ¶
func (c *AccountsIssuesListCall) PageSize(pageSize int64) *AccountsIssuesListCall
PageSize sets the optional parameter "pageSize": The maximum number of issues to return. The service may return fewer than this value. If unspecified, at most 50 users will be returned. The maximum value is 100; values above 100 will be coerced to 100
func (*AccountsIssuesListCall) PageToken ¶
func (c *AccountsIssuesListCall) PageToken(pageToken string) *AccountsIssuesListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListAccountIssues` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccountIssues` must match the call that provided the page token.
func (*AccountsIssuesListCall) Pages ¶
func (c *AccountsIssuesListCall) Pages(ctx context.Context, f func(*ListAccountIssuesResponse) 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 (*AccountsIssuesListCall) TimeZoneId ¶
func (c *AccountsIssuesListCall) TimeZoneId(timeZoneId string) *AccountsIssuesListCall
TimeZoneId sets the optional parameter "timeZone.id": IANA Time Zone Database time zone, e.g. "America/New_York".
func (*AccountsIssuesListCall) TimeZoneVersion ¶
func (c *AccountsIssuesListCall) TimeZoneVersion(timeZoneVersion string) *AccountsIssuesListCall
TimeZoneVersion sets the optional parameter "timeZone.version": IANA Time Zone Database version number, e.g. "2019a".
type AccountsIssuesService ¶
type AccountsIssuesService struct {
// contains filtered or unexported fields
}
func NewAccountsIssuesService ¶
func NewAccountsIssuesService(s *APIService) *AccountsIssuesService
func (*AccountsIssuesService) List ¶
func (r *AccountsIssuesService) List(parent string) *AccountsIssuesListCall
List: Lists all account issues of a Merchant Center account.
- parent: The parent, which owns this collection of issues. Format: `accounts/{account}`.
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.
func (*AccountsListCall) Do ¶
func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*ListAccountsResponse, error)
Do executes the "merchantapi.accounts.list" call. Any non-2xx status code is an error. Response headers are in either *ListAccountsResponse.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 details.
func (*AccountsListCall) Filter ¶
func (c *AccountsListCall) Filter(filter string) *AccountsListCall
Filter sets the optional parameter "filter": Returns only accounts that match the filter (/merchant/api/guides/accounts/filter). For more details, see the filter syntax reference (/merchant/api/guides/accounts/filter-syntax).
func (*AccountsListCall) Header ¶
func (c *AccountsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsListCall) IfNoneMatch ¶
func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall
IfNoneMatch sets an 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.
func (*AccountsListCall) PageSize ¶
func (c *AccountsListCall) PageSize(pageSize int64) *AccountsListCall
PageSize sets the optional parameter "pageSize": The maximum number of accounts to return. The service may return fewer than this value. If unspecified, at most 250 accounts are returned. The maximum value is 500; values above 500 are coerced to 500.
func (*AccountsListCall) PageToken ¶
func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListAccounts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccounts` must match the call that provided the page token.
func (*AccountsListCall) Pages ¶
func (c *AccountsListCall) Pages(ctx context.Context, f func(*ListAccountsResponse) 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 AccountsListSubaccountsCall ¶
type AccountsListSubaccountsCall struct {
// contains filtered or unexported fields
}
func (*AccountsListSubaccountsCall) Context ¶
func (c *AccountsListSubaccountsCall) Context(ctx context.Context) *AccountsListSubaccountsCall
Context sets the context to be used in this call's Do method.
func (*AccountsListSubaccountsCall) Do ¶
func (c *AccountsListSubaccountsCall) Do(opts ...googleapi.CallOption) (*ListSubAccountsResponse, error)
Do executes the "merchantapi.accounts.listSubaccounts" call. Any non-2xx status code is an error. Response headers are in either *ListSubAccountsResponse.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 (*AccountsListSubaccountsCall) Fields ¶
func (c *AccountsListSubaccountsCall) Fields(s ...googleapi.Field) *AccountsListSubaccountsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsListSubaccountsCall) Header ¶
func (c *AccountsListSubaccountsCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsListSubaccountsCall) IfNoneMatch ¶
func (c *AccountsListSubaccountsCall) IfNoneMatch(entityTag string) *AccountsListSubaccountsCall
IfNoneMatch sets an 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.
func (*AccountsListSubaccountsCall) PageSize ¶
func (c *AccountsListSubaccountsCall) PageSize(pageSize int64) *AccountsListSubaccountsCall
PageSize sets the optional parameter "pageSize": The maximum number of accounts to return. The service may return fewer than this value. If unspecified, at most 250 accounts are returned. The maximum value is 500; values above 500 are coerced to 500.
func (*AccountsListSubaccountsCall) PageToken ¶
func (c *AccountsListSubaccountsCall) PageToken(pageToken string) *AccountsListSubaccountsCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListAccounts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListAccounts` must match the call that provided the page token.
func (*AccountsListSubaccountsCall) Pages ¶
func (c *AccountsListSubaccountsCall) Pages(ctx context.Context, f func(*ListSubAccountsResponse) 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 AccountsOnlineReturnPoliciesGetCall ¶
type AccountsOnlineReturnPoliciesGetCall struct {
// contains filtered or unexported fields
}
func (*AccountsOnlineReturnPoliciesGetCall) Context ¶
func (c *AccountsOnlineReturnPoliciesGetCall) Context(ctx context.Context) *AccountsOnlineReturnPoliciesGetCall
Context sets the context to be used in this call's Do method.
func (*AccountsOnlineReturnPoliciesGetCall) Do ¶
func (c *AccountsOnlineReturnPoliciesGetCall) Do(opts ...googleapi.CallOption) (*OnlineReturnPolicy, error)
Do executes the "merchantapi.accounts.onlineReturnPolicies.get" call. Any non-2xx status code is an error. Response headers are in either *OnlineReturnPolicy.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 (*AccountsOnlineReturnPoliciesGetCall) Fields ¶
func (c *AccountsOnlineReturnPoliciesGetCall) Fields(s ...googleapi.Field) *AccountsOnlineReturnPoliciesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsOnlineReturnPoliciesGetCall) Header ¶
func (c *AccountsOnlineReturnPoliciesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsOnlineReturnPoliciesGetCall) IfNoneMatch ¶
func (c *AccountsOnlineReturnPoliciesGetCall) IfNoneMatch(entityTag string) *AccountsOnlineReturnPoliciesGetCall
IfNoneMatch sets an 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.
type AccountsOnlineReturnPoliciesListCall ¶
type AccountsOnlineReturnPoliciesListCall struct {
// contains filtered or unexported fields
}
func (*AccountsOnlineReturnPoliciesListCall) Context ¶
func (c *AccountsOnlineReturnPoliciesListCall) Context(ctx context.Context) *AccountsOnlineReturnPoliciesListCall
Context sets the context to be used in this call's Do method.
func (*AccountsOnlineReturnPoliciesListCall) Do ¶
func (c *AccountsOnlineReturnPoliciesListCall) Do(opts ...googleapi.CallOption) (*ListOnlineReturnPoliciesResponse, error)
Do executes the "merchantapi.accounts.onlineReturnPolicies.list" call. Any non-2xx status code is an error. Response headers are in either *ListOnlineReturnPoliciesResponse.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 (*AccountsOnlineReturnPoliciesListCall) Fields ¶
func (c *AccountsOnlineReturnPoliciesListCall) Fields(s ...googleapi.Field) *AccountsOnlineReturnPoliciesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsOnlineReturnPoliciesListCall) Header ¶
func (c *AccountsOnlineReturnPoliciesListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsOnlineReturnPoliciesListCall) IfNoneMatch ¶
func (c *AccountsOnlineReturnPoliciesListCall) IfNoneMatch(entityTag string) *AccountsOnlineReturnPoliciesListCall
IfNoneMatch sets an 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.
func (*AccountsOnlineReturnPoliciesListCall) PageSize ¶
func (c *AccountsOnlineReturnPoliciesListCall) PageSize(pageSize int64) *AccountsOnlineReturnPoliciesListCall
PageSize sets the optional parameter "pageSize": The maximum number of `OnlineReturnPolicy` resources to return. The service returns fewer than this value if the number of return policies for the given merchant is less that than the `pageSize`. The default value is 10. The maximum value is 100; If a value higher than the maximum is specified, then the `pageSize` will default to the maximum
func (*AccountsOnlineReturnPoliciesListCall) PageToken ¶
func (c *AccountsOnlineReturnPoliciesListCall) PageToken(pageToken string) *AccountsOnlineReturnPoliciesListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListOnlineReturnPolicies` call. Provide the page token to retrieve the subsequent page. When paginating, all other parameters provided to `ListOnlineReturnPolicies` must match the call that provided the page token. The token returned as nextPageToken in the response to the previous request.
func (*AccountsOnlineReturnPoliciesListCall) Pages ¶
func (c *AccountsOnlineReturnPoliciesListCall) Pages(ctx context.Context, f func(*ListOnlineReturnPoliciesResponse) 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 AccountsOnlineReturnPoliciesService ¶
type AccountsOnlineReturnPoliciesService struct {
// contains filtered or unexported fields
}
func NewAccountsOnlineReturnPoliciesService ¶
func NewAccountsOnlineReturnPoliciesService(s *APIService) *AccountsOnlineReturnPoliciesService
func (*AccountsOnlineReturnPoliciesService) Get ¶
func (r *AccountsOnlineReturnPoliciesService) Get(name string) *AccountsOnlineReturnPoliciesGetCall
Get: Gets an existing return policy.
- name: The name of the return policy to retrieve. Format: `accounts/{account}/onlineReturnPolicies/{return_policy}`.
func (*AccountsOnlineReturnPoliciesService) List ¶
func (r *AccountsOnlineReturnPoliciesService) List(parent string) *AccountsOnlineReturnPoliciesListCall
List: Lists all existing return policies.
- parent: The merchant account for which to list return policies. Format: `accounts/{account}`.
type AccountsPatchCall ¶
type AccountsPatchCall struct {
// contains filtered or unexported fields
}
func (*AccountsPatchCall) Context ¶
func (c *AccountsPatchCall) Context(ctx context.Context) *AccountsPatchCall
Context sets the context to be used in this call's Do method.
func (*AccountsPatchCall) Do ¶
func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error)
Do executes the "merchantapi.accounts.patch" call. Any non-2xx status code is an error. Response headers are in either *Account.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AccountsPatchCall) Fields ¶
func (c *AccountsPatchCall) Fields(s ...googleapi.Field) *AccountsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsPatchCall) Header ¶
func (c *AccountsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsPatchCall) UpdateMask ¶
func (c *AccountsPatchCall) UpdateMask(updateMask string) *AccountsPatchCall
UpdateMask sets the optional parameter "updateMask": Required. List of fields being updated.
type AccountsProgramsDisableCall ¶
type AccountsProgramsDisableCall struct {
// contains filtered or unexported fields
}
func (*AccountsProgramsDisableCall) Context ¶
func (c *AccountsProgramsDisableCall) Context(ctx context.Context) *AccountsProgramsDisableCall
Context sets the context to be used in this call's Do method.
func (*AccountsProgramsDisableCall) Do ¶
func (c *AccountsProgramsDisableCall) Do(opts ...googleapi.CallOption) (*Program, error)
Do executes the "merchantapi.accounts.programs.disable" call. Any non-2xx status code is an error. Response headers are in either *Program.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 (*AccountsProgramsDisableCall) Fields ¶
func (c *AccountsProgramsDisableCall) Fields(s ...googleapi.Field) *AccountsProgramsDisableCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsProgramsDisableCall) Header ¶
func (c *AccountsProgramsDisableCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type AccountsProgramsEnableCall ¶
type AccountsProgramsEnableCall struct {
// contains filtered or unexported fields
}
func (*AccountsProgramsEnableCall) Context ¶
func (c *AccountsProgramsEnableCall) Context(ctx context.Context) *AccountsProgramsEnableCall
Context sets the context to be used in this call's Do method.
func (*AccountsProgramsEnableCall) Do ¶
func (c *AccountsProgramsEnableCall) Do(opts ...googleapi.CallOption) (*Program, error)
Do executes the "merchantapi.accounts.programs.enable" call. Any non-2xx status code is an error. Response headers are in either *Program.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 (*AccountsProgramsEnableCall) Fields ¶
func (c *AccountsProgramsEnableCall) Fields(s ...googleapi.Field) *AccountsProgramsEnableCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsProgramsEnableCall) Header ¶
func (c *AccountsProgramsEnableCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type AccountsProgramsGetCall ¶
type AccountsProgramsGetCall struct {
// contains filtered or unexported fields
}
func (*AccountsProgramsGetCall) Context ¶
func (c *AccountsProgramsGetCall) Context(ctx context.Context) *AccountsProgramsGetCall
Context sets the context to be used in this call's Do method.
func (*AccountsProgramsGetCall) Do ¶
func (c *AccountsProgramsGetCall) Do(opts ...googleapi.CallOption) (*Program, error)
Do executes the "merchantapi.accounts.programs.get" call. Any non-2xx status code is an error. Response headers are in either *Program.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 (*AccountsProgramsGetCall) Fields ¶
func (c *AccountsProgramsGetCall) Fields(s ...googleapi.Field) *AccountsProgramsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsProgramsGetCall) Header ¶
func (c *AccountsProgramsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsProgramsGetCall) IfNoneMatch ¶
func (c *AccountsProgramsGetCall) IfNoneMatch(entityTag string) *AccountsProgramsGetCall
IfNoneMatch sets an 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.
type AccountsProgramsListCall ¶
type AccountsProgramsListCall struct {
// contains filtered or unexported fields
}
func (*AccountsProgramsListCall) Context ¶
func (c *AccountsProgramsListCall) Context(ctx context.Context) *AccountsProgramsListCall
Context sets the context to be used in this call's Do method.
func (*AccountsProgramsListCall) Do ¶
func (c *AccountsProgramsListCall) Do(opts ...googleapi.CallOption) (*ListProgramsResponse, error)
Do executes the "merchantapi.accounts.programs.list" call. Any non-2xx status code is an error. Response headers are in either *ListProgramsResponse.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 (*AccountsProgramsListCall) Fields ¶
func (c *AccountsProgramsListCall) Fields(s ...googleapi.Field) *AccountsProgramsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsProgramsListCall) Header ¶
func (c *AccountsProgramsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsProgramsListCall) IfNoneMatch ¶
func (c *AccountsProgramsListCall) IfNoneMatch(entityTag string) *AccountsProgramsListCall
IfNoneMatch sets an 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.
func (*AccountsProgramsListCall) PageSize ¶
func (c *AccountsProgramsListCall) PageSize(pageSize int64) *AccountsProgramsListCall
PageSize sets the optional parameter "pageSize": The maximum number of programs to return in a single response. If unspecified (or 0), a default size of 1000 is used. The maximum value is 1000; values above 1000 will be coerced to 1000.
func (*AccountsProgramsListCall) PageToken ¶
func (c *AccountsProgramsListCall) PageToken(pageToken string) *AccountsProgramsListCall
PageToken sets the optional parameter "pageToken": A continuation token, received from a previous `ListPrograms` call. Provide this to retrieve the next page.
func (*AccountsProgramsListCall) Pages ¶
func (c *AccountsProgramsListCall) Pages(ctx context.Context, f func(*ListProgramsResponse) 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 AccountsProgramsService ¶
type AccountsProgramsService struct {
// contains filtered or unexported fields
}
func NewAccountsProgramsService ¶
func NewAccountsProgramsService(s *APIService) *AccountsProgramsService
func (*AccountsProgramsService) Disable ¶
func (r *AccountsProgramsService) Disable(name string, disableprogramrequest *DisableProgramRequest) *AccountsProgramsDisableCall
Disable: Disable participation in the specified program for the account. Executing this method requires admin access.
- name: The name of the program for which to disable participation for the given account. Format: `accounts/{account}/programs/{program}`.
func (*AccountsProgramsService) Enable ¶
func (r *AccountsProgramsService) Enable(name string, enableprogramrequest *EnableProgramRequest) *AccountsProgramsEnableCall
Enable: Enable participation in the specified program for the account. Executing this method requires admin access.
- name: The name of the program for which to enable participation for the given account. Format: `accounts/{account}/programs/{program}`.
func (*AccountsProgramsService) Get ¶
func (r *AccountsProgramsService) Get(name string) *AccountsProgramsGetCall
Get: Retrieves the specified program for the account.
- name: The name of the program to retrieve. Format: `accounts/{account}/programs/{program}`.
func (*AccountsProgramsService) List ¶
func (r *AccountsProgramsService) List(parent string) *AccountsProgramsListCall
List: Retrieves all programs for the account.
- parent: The name of the account for which to retrieve all programs. Format: `accounts/{account}`.
type AccountsRegionsCreateCall ¶
type AccountsRegionsCreateCall struct {
// contains filtered or unexported fields
}
func (*AccountsRegionsCreateCall) Context ¶
func (c *AccountsRegionsCreateCall) Context(ctx context.Context) *AccountsRegionsCreateCall
Context sets the context to be used in this call's Do method.
func (*AccountsRegionsCreateCall) Do ¶
func (c *AccountsRegionsCreateCall) Do(opts ...googleapi.CallOption) (*Region, error)
Do executes the "merchantapi.accounts.regions.create" call. 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 (*AccountsRegionsCreateCall) Fields ¶
func (c *AccountsRegionsCreateCall) Fields(s ...googleapi.Field) *AccountsRegionsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsRegionsCreateCall) Header ¶
func (c *AccountsRegionsCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsRegionsCreateCall) RegionId ¶
func (c *AccountsRegionsCreateCall) RegionId(regionId string) *AccountsRegionsCreateCall
RegionId sets the optional parameter "regionId": Required. The identifier for the region, unique over all regions of the same account.
type AccountsRegionsDeleteCall ¶
type AccountsRegionsDeleteCall struct {
// contains filtered or unexported fields
}
func (*AccountsRegionsDeleteCall) Context ¶
func (c *AccountsRegionsDeleteCall) Context(ctx context.Context) *AccountsRegionsDeleteCall
Context sets the context to be used in this call's Do method.
func (*AccountsRegionsDeleteCall) Do ¶
func (c *AccountsRegionsDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "merchantapi.accounts.regions.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*AccountsRegionsDeleteCall) Fields ¶
func (c *AccountsRegionsDeleteCall) Fields(s ...googleapi.Field) *AccountsRegionsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsRegionsDeleteCall) Header ¶
func (c *AccountsRegionsDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type AccountsRegionsGetCall ¶
type AccountsRegionsGetCall struct {
// contains filtered or unexported fields
}
func (*AccountsRegionsGetCall) Context ¶
func (c *AccountsRegionsGetCall) Context(ctx context.Context) *AccountsRegionsGetCall
Context sets the context to be used in this call's Do method.
func (*AccountsRegionsGetCall) Do ¶
func (c *AccountsRegionsGetCall) Do(opts ...googleapi.CallOption) (*Region, error)
Do executes the "merchantapi.accounts.regions.get" call. 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 (*AccountsRegionsGetCall) Fields ¶
func (c *AccountsRegionsGetCall) Fields(s ...googleapi.Field) *AccountsRegionsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsRegionsGetCall) Header ¶
func (c *AccountsRegionsGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsRegionsGetCall) IfNoneMatch ¶
func (c *AccountsRegionsGetCall) IfNoneMatch(entityTag string) *AccountsRegionsGetCall
IfNoneMatch sets an 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.
type AccountsRegionsListCall ¶
type AccountsRegionsListCall struct {
// contains filtered or unexported fields
}
func (*AccountsRegionsListCall) Context ¶
func (c *AccountsRegionsListCall) Context(ctx context.Context) *AccountsRegionsListCall
Context sets the context to be used in this call's Do method.
func (*AccountsRegionsListCall) Do ¶
func (c *AccountsRegionsListCall) Do(opts ...googleapi.CallOption) (*ListRegionsResponse, error)
Do executes the "merchantapi.accounts.regions.list" call. 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 (*AccountsRegionsListCall) Fields ¶
func (c *AccountsRegionsListCall) Fields(s ...googleapi.Field) *AccountsRegionsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsRegionsListCall) Header ¶
func (c *AccountsRegionsListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsRegionsListCall) IfNoneMatch ¶
func (c *AccountsRegionsListCall) IfNoneMatch(entityTag string) *AccountsRegionsListCall
IfNoneMatch sets an 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.
func (*AccountsRegionsListCall) PageSize ¶
func (c *AccountsRegionsListCall) PageSize(pageSize int64) *AccountsRegionsListCall
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 regions will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
func (*AccountsRegionsListCall) PageToken ¶
func (c *AccountsRegionsListCall) PageToken(pageToken string) *AccountsRegionsListCall
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 (*AccountsRegionsListCall) Pages ¶
func (c *AccountsRegionsListCall) 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 AccountsRegionsPatchCall ¶
type AccountsRegionsPatchCall struct {
// contains filtered or unexported fields
}
func (*AccountsRegionsPatchCall) Context ¶
func (c *AccountsRegionsPatchCall) Context(ctx context.Context) *AccountsRegionsPatchCall
Context sets the context to be used in this call's Do method.
func (*AccountsRegionsPatchCall) Do ¶
func (c *AccountsRegionsPatchCall) Do(opts ...googleapi.CallOption) (*Region, error)
Do executes the "merchantapi.accounts.regions.patch" call. 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 (*AccountsRegionsPatchCall) Fields ¶
func (c *AccountsRegionsPatchCall) Fields(s ...googleapi.Field) *AccountsRegionsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsRegionsPatchCall) Header ¶
func (c *AccountsRegionsPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsRegionsPatchCall) UpdateMask ¶
func (c *AccountsRegionsPatchCall) UpdateMask(updateMask string) *AccountsRegionsPatchCall
UpdateMask sets the optional parameter "updateMask": The comma-separated field mask indicating the fields to update. Example: "displayName,postalCodeArea.regionCode".
type AccountsRegionsService ¶
type AccountsRegionsService struct {
// contains filtered or unexported fields
}
func NewAccountsRegionsService ¶
func NewAccountsRegionsService(s *APIService) *AccountsRegionsService
func (*AccountsRegionsService) Create ¶
func (r *AccountsRegionsService) Create(parent string, region *Region) *AccountsRegionsCreateCall
Create: Creates a region definition in your Merchant Center account. Executing this method requires admin access.
- parent: The account to create a region for. Format: `accounts/{account}`.
func (*AccountsRegionsService) Delete ¶
func (r *AccountsRegionsService) Delete(name string) *AccountsRegionsDeleteCall
Delete: Deletes a region definition from your Merchant Center account. Executing this method requires admin access.
- name: The name of the region to delete. Format: `accounts/{account}/regions/{region}`.
func (*AccountsRegionsService) Get ¶
func (r *AccountsRegionsService) Get(name string) *AccountsRegionsGetCall
Get: Retrieves a region defined in your Merchant Center account.
- name: The name of the region to retrieve. Format: `accounts/{account}/regions/{region}`.
func (*AccountsRegionsService) List ¶
func (r *AccountsRegionsService) List(parent string) *AccountsRegionsListCall
List: Lists the regions in your Merchant Center account.
- parent: The account to list regions for. Format: `accounts/{account}`.
func (*AccountsRegionsService) Patch ¶
func (r *AccountsRegionsService) Patch(name string, region *Region) *AccountsRegionsPatchCall
Patch: Updates a region definition in your Merchant Center account. Executing this method requires admin access.
- name: Identifier. The resource name of the region. Format: `accounts/{account}/regions/{region}`.
type AccountsService ¶
type AccountsService struct { Accounttax *AccountsAccounttaxService Homepage *AccountsHomepageService Issues *AccountsIssuesService OnlineReturnPolicies *AccountsOnlineReturnPoliciesService Programs *AccountsProgramsService Regions *AccountsRegionsService ShippingSettings *AccountsShippingSettingsService TermsOfServiceAgreementStates *AccountsTermsOfServiceAgreementStatesService Users *AccountsUsersService // contains filtered or unexported fields }
func NewAccountsService ¶
func NewAccountsService(s *APIService) *AccountsService
func (*AccountsService) CreateAndConfigure ¶
func (r *AccountsService) CreateAndConfigure(createandconfigureaccountrequest *CreateAndConfigureAccountRequest) *AccountsCreateAndConfigureCall
CreateAndConfigure: Creates a standalone Merchant Center account with additional configuration. Adds the user that makes the request as an admin for the new account.
func (*AccountsService) Delete ¶
func (r *AccountsService) Delete(name string) *AccountsDeleteCall
Delete: Deletes the specified account regardless of its type: standalone, MCA or sub-account. Deleting an MCA leads to the deletion of all of its sub-accounts. Executing this method requires admin access.
- name: The name of the account to delete. Format: `accounts/{account}`.
func (*AccountsService) Get ¶
func (r *AccountsService) Get(name string) *AccountsGetCall
Get: Retrieves an account from your Merchant Center account. After inserting, updating, or deleting an account, it may take several minutes before changes take effect.
- name: The name of the account to retrieve. Format: `accounts/{account}`.
func (*AccountsService) GetBusinessIdentity ¶
func (r *AccountsService) GetBusinessIdentity(name string) *AccountsGetBusinessIdentityCall
GetBusinessIdentity: Retrieves the business identity of an account.
- name: The resource name of the business identity. Format: `accounts/{account}/businessIdentity`.
func (*AccountsService) GetBusinessInfo ¶
func (r *AccountsService) GetBusinessInfo(name string) *AccountsGetBusinessInfoCall
GetBusinessInfo: Retrieves the business info of an account.
- name: The resource name of the business info. Format: `accounts/{account}/businessInfo`.
func (*AccountsService) GetHomepage ¶
func (r *AccountsService) GetHomepage(name string) *AccountsGetHomepageCall
GetHomepage: Retrieves a store's homepage.
- name: The name of the homepage to retrieve. Format: `accounts/{account}/homepage`.
func (*AccountsService) GetShippingSettings ¶
func (r *AccountsService) GetShippingSettings(name string) *AccountsGetShippingSettingsCall
GetShippingSettings: Retrieve shipping setting information.
- name: The name of the shipping setting to retrieve. Format: `accounts/{account}/shippingsetting`.
func (*AccountsService) List ¶
func (r *AccountsService) List() *AccountsListCall
List: Lists accounts accessible to the calling user and matching the constraints of the request such as page size or filters. This is not just listing the sub-accounts of an MCA, but all accounts the calling user has access to including other MCAs, linked accounts, standalone accounts and so on.
func (*AccountsService) ListSubaccounts ¶
func (r *AccountsService) ListSubaccounts(provider string) *AccountsListSubaccountsCall
ListSubaccounts: List all sub-accounts for a given multi client account. This is a convenience wrapper for the more powerful `ListAccounts` method. This method will produce the same results as calling `ListsAccounts` with the following filter: `relationship(providerId={parent} AND service(type="ACCOUNT_AGGREGATION"))`
- provider: The parent account. Format: `accounts/{account}`.
func (*AccountsService) Patch ¶
func (r *AccountsService) Patch(name string, account *Account) *AccountsPatchCall
Patch: Updates an account regardless of its type: standalone, MCA or sub-account. Executing this method requires admin access.
- name: Identifier. The resource name of the account. Format: `accounts/{account}`.
func (*AccountsService) UpdateBusinessIdentity ¶
func (r *AccountsService) UpdateBusinessIdentity(name string, businessidentity *BusinessIdentity) *AccountsUpdateBusinessIdentityCall
UpdateBusinessIdentity: Updates the business identity of an account. Executing this method requires admin access.
- name: Identifier. The resource name of the business identity. Format: `accounts/{account}/businessIdentity`.
func (*AccountsService) UpdateBusinessInfo ¶
func (r *AccountsService) UpdateBusinessInfo(name string, businessinfo *BusinessInfo) *AccountsUpdateBusinessInfoCall
UpdateBusinessInfo: Updates the business info of an account. Executing this method requires admin access.
- name: Identifier. The resource name of the business info. Format: `accounts/{account}/businessInfo`.
func (*AccountsService) UpdateHomepage ¶
func (r *AccountsService) UpdateHomepage(name string, homepage *Homepage) *AccountsUpdateHomepageCall
UpdateHomepage: Updates a store's homepage. Executing this method requires admin access.
- name: Identifier. The resource name of the store's homepage. Format: `accounts/{account}/homepage`.
type AccountsShippingSettingsInsertCall ¶
type AccountsShippingSettingsInsertCall struct {
// contains filtered or unexported fields
}
func (*AccountsShippingSettingsInsertCall) Context ¶
func (c *AccountsShippingSettingsInsertCall) Context(ctx context.Context) *AccountsShippingSettingsInsertCall
Context sets the context to be used in this call's Do method.
func (*AccountsShippingSettingsInsertCall) Do ¶
func (c *AccountsShippingSettingsInsertCall) Do(opts ...googleapi.CallOption) (*ShippingSettings, error)
Do executes the "merchantapi.accounts.shippingSettings.insert" call. 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 (*AccountsShippingSettingsInsertCall) Fields ¶
func (c *AccountsShippingSettingsInsertCall) Fields(s ...googleapi.Field) *AccountsShippingSettingsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsShippingSettingsInsertCall) Header ¶
func (c *AccountsShippingSettingsInsertCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type AccountsShippingSettingsService ¶
type AccountsShippingSettingsService struct {
// contains filtered or unexported fields
}
func NewAccountsShippingSettingsService ¶
func NewAccountsShippingSettingsService(s *APIService) *AccountsShippingSettingsService
func (*AccountsShippingSettingsService) Insert ¶
func (r *AccountsShippingSettingsService) Insert(parent string, shippingsettings *ShippingSettings) *AccountsShippingSettingsInsertCall
Insert: Replace the shipping setting of a merchant with the request shipping setting. Executing this method requires admin access.
- parent: The account where this product will be inserted. Format: accounts/{account}.
type AccountsTermsOfServiceAgreementStatesGetCall ¶
type AccountsTermsOfServiceAgreementStatesGetCall struct {
// contains filtered or unexported fields
}
func (*AccountsTermsOfServiceAgreementStatesGetCall) Context ¶
func (c *AccountsTermsOfServiceAgreementStatesGetCall) Context(ctx context.Context) *AccountsTermsOfServiceAgreementStatesGetCall
Context sets the context to be used in this call's Do method.
func (*AccountsTermsOfServiceAgreementStatesGetCall) Do ¶
func (c *AccountsTermsOfServiceAgreementStatesGetCall) Do(opts ...googleapi.CallOption) (*TermsOfServiceAgreementState, error)
Do executes the "merchantapi.accounts.termsOfServiceAgreementStates.get" call. Any non-2xx status code is an error. Response headers are in either *TermsOfServiceAgreementState.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 (*AccountsTermsOfServiceAgreementStatesGetCall) Fields ¶
func (c *AccountsTermsOfServiceAgreementStatesGetCall) Fields(s ...googleapi.Field) *AccountsTermsOfServiceAgreementStatesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsTermsOfServiceAgreementStatesGetCall) Header ¶
func (c *AccountsTermsOfServiceAgreementStatesGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsTermsOfServiceAgreementStatesGetCall) IfNoneMatch ¶
func (c *AccountsTermsOfServiceAgreementStatesGetCall) IfNoneMatch(entityTag string) *AccountsTermsOfServiceAgreementStatesGetCall
IfNoneMatch sets an 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.
type AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall ¶
type AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall struct {
// contains filtered or unexported fields
}
func (*AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall) Context ¶
func (c *AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall) Context(ctx context.Context) *AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall
Context sets the context to be used in this call's Do method.
func (*AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall) Do ¶
func (c *AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall) Do(opts ...googleapi.CallOption) (*TermsOfServiceAgreementState, error)
Do executes the "merchantapi.accounts.termsOfServiceAgreementStates.retrieveForApplication" call. Any non-2xx status code is an error. Response headers are in either *TermsOfServiceAgreementState.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 (*AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall) Fields ¶
func (c *AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall) Fields(s ...googleapi.Field) *AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall) Header ¶
func (c *AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall) IfNoneMatch ¶
func (c *AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall) IfNoneMatch(entityTag string) *AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall
IfNoneMatch sets an 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.
type AccountsTermsOfServiceAgreementStatesService ¶
type AccountsTermsOfServiceAgreementStatesService struct {
// contains filtered or unexported fields
}
func NewAccountsTermsOfServiceAgreementStatesService ¶
func NewAccountsTermsOfServiceAgreementStatesService(s *APIService) *AccountsTermsOfServiceAgreementStatesService
func (*AccountsTermsOfServiceAgreementStatesService) Get ¶
func (r *AccountsTermsOfServiceAgreementStatesService) Get(nameid string) *AccountsTermsOfServiceAgreementStatesGetCall
Get: Returns the state of a terms of service agreement.
- name: The resource name of the terms of service version. Format: `accounts/{account}/termsOfServiceAgreementState/{identifier}`.
func (*AccountsTermsOfServiceAgreementStatesService) RetrieveForApplication ¶
func (r *AccountsTermsOfServiceAgreementStatesService) RetrieveForApplication(parent string) *AccountsTermsOfServiceAgreementStatesRetrieveForApplicationCall
RetrieveForApplication: Retrieves the state of the agreement for the application terms of service.
- parent: The account for which to get a TermsOfServiceAgreementState Format: `accounts/{account}`.
type AccountsUpdateBusinessIdentityCall ¶
type AccountsUpdateBusinessIdentityCall struct {
// contains filtered or unexported fields
}
func (*AccountsUpdateBusinessIdentityCall) Context ¶
func (c *AccountsUpdateBusinessIdentityCall) Context(ctx context.Context) *AccountsUpdateBusinessIdentityCall
Context sets the context to be used in this call's Do method.
func (*AccountsUpdateBusinessIdentityCall) Do ¶
func (c *AccountsUpdateBusinessIdentityCall) Do(opts ...googleapi.CallOption) (*BusinessIdentity, error)
Do executes the "merchantapi.accounts.updateBusinessIdentity" call. Any non-2xx status code is an error. Response headers are in either *BusinessIdentity.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 (*AccountsUpdateBusinessIdentityCall) Fields ¶
func (c *AccountsUpdateBusinessIdentityCall) Fields(s ...googleapi.Field) *AccountsUpdateBusinessIdentityCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsUpdateBusinessIdentityCall) Header ¶
func (c *AccountsUpdateBusinessIdentityCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsUpdateBusinessIdentityCall) UpdateMask ¶
func (c *AccountsUpdateBusinessIdentityCall) UpdateMask(updateMask string) *AccountsUpdateBusinessIdentityCall
UpdateMask sets the optional parameter "updateMask": Required. List of fields being updated.
type AccountsUpdateBusinessInfoCall ¶
type AccountsUpdateBusinessInfoCall struct {
// contains filtered or unexported fields
}
func (*AccountsUpdateBusinessInfoCall) Context ¶
func (c *AccountsUpdateBusinessInfoCall) Context(ctx context.Context) *AccountsUpdateBusinessInfoCall
Context sets the context to be used in this call's Do method.
func (*AccountsUpdateBusinessInfoCall) Do ¶
func (c *AccountsUpdateBusinessInfoCall) Do(opts ...googleapi.CallOption) (*BusinessInfo, error)
Do executes the "merchantapi.accounts.updateBusinessInfo" call. Any non-2xx status code is an error. Response headers are in either *BusinessInfo.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 (*AccountsUpdateBusinessInfoCall) Fields ¶
func (c *AccountsUpdateBusinessInfoCall) Fields(s ...googleapi.Field) *AccountsUpdateBusinessInfoCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsUpdateBusinessInfoCall) Header ¶
func (c *AccountsUpdateBusinessInfoCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsUpdateBusinessInfoCall) UpdateMask ¶
func (c *AccountsUpdateBusinessInfoCall) UpdateMask(updateMask string) *AccountsUpdateBusinessInfoCall
UpdateMask sets the optional parameter "updateMask": Required. List of fields being updated.
type AccountsUpdateHomepageCall ¶
type AccountsUpdateHomepageCall struct {
// contains filtered or unexported fields
}
func (*AccountsUpdateHomepageCall) Context ¶
func (c *AccountsUpdateHomepageCall) Context(ctx context.Context) *AccountsUpdateHomepageCall
Context sets the context to be used in this call's Do method.
func (*AccountsUpdateHomepageCall) Do ¶
func (c *AccountsUpdateHomepageCall) Do(opts ...googleapi.CallOption) (*Homepage, error)
Do executes the "merchantapi.accounts.updateHomepage" call. Any non-2xx status code is an error. Response headers are in either *Homepage.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 (*AccountsUpdateHomepageCall) Fields ¶
func (c *AccountsUpdateHomepageCall) Fields(s ...googleapi.Field) *AccountsUpdateHomepageCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsUpdateHomepageCall) Header ¶
func (c *AccountsUpdateHomepageCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsUpdateHomepageCall) UpdateMask ¶
func (c *AccountsUpdateHomepageCall) UpdateMask(updateMask string) *AccountsUpdateHomepageCall
UpdateMask sets the optional parameter "updateMask": Required. List of fields being updated.
type AccountsUsersCreateCall ¶
type AccountsUsersCreateCall struct {
// contains filtered or unexported fields
}
func (*AccountsUsersCreateCall) Context ¶
func (c *AccountsUsersCreateCall) Context(ctx context.Context) *AccountsUsersCreateCall
Context sets the context to be used in this call's Do method.
func (*AccountsUsersCreateCall) Do ¶
func (c *AccountsUsersCreateCall) Do(opts ...googleapi.CallOption) (*User, error)
Do executes the "merchantapi.accounts.users.create" call. Any non-2xx status code is an error. Response headers are in either *User.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 (*AccountsUsersCreateCall) Fields ¶
func (c *AccountsUsersCreateCall) Fields(s ...googleapi.Field) *AccountsUsersCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsUsersCreateCall) Header ¶
func (c *AccountsUsersCreateCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsUsersCreateCall) UserId ¶
func (c *AccountsUsersCreateCall) UserId(userId string) *AccountsUsersCreateCall
UserId sets the optional parameter "userId": Required. The email address of the user (for example, `john.doe@gmail.com`).
type AccountsUsersDeleteCall ¶
type AccountsUsersDeleteCall struct {
// contains filtered or unexported fields
}
func (*AccountsUsersDeleteCall) Context ¶
func (c *AccountsUsersDeleteCall) Context(ctx context.Context) *AccountsUsersDeleteCall
Context sets the context to be used in this call's Do method.
func (*AccountsUsersDeleteCall) Do ¶
func (c *AccountsUsersDeleteCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "merchantapi.accounts.users.delete" call. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*AccountsUsersDeleteCall) Fields ¶
func (c *AccountsUsersDeleteCall) Fields(s ...googleapi.Field) *AccountsUsersDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsUsersDeleteCall) Header ¶
func (c *AccountsUsersDeleteCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
type AccountsUsersGetCall ¶
type AccountsUsersGetCall struct {
// contains filtered or unexported fields
}
func (*AccountsUsersGetCall) Context ¶
func (c *AccountsUsersGetCall) Context(ctx context.Context) *AccountsUsersGetCall
Context sets the context to be used in this call's Do method.
func (*AccountsUsersGetCall) Do ¶
func (c *AccountsUsersGetCall) Do(opts ...googleapi.CallOption) (*User, error)
Do executes the "merchantapi.accounts.users.get" call. Any non-2xx status code is an error. Response headers are in either *User.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 (*AccountsUsersGetCall) Fields ¶
func (c *AccountsUsersGetCall) Fields(s ...googleapi.Field) *AccountsUsersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsUsersGetCall) Header ¶
func (c *AccountsUsersGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsUsersGetCall) IfNoneMatch ¶
func (c *AccountsUsersGetCall) IfNoneMatch(entityTag string) *AccountsUsersGetCall
IfNoneMatch sets an 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.
type AccountsUsersGetEmailPreferencesCall ¶
type AccountsUsersGetEmailPreferencesCall struct {
// contains filtered or unexported fields
}
func (*AccountsUsersGetEmailPreferencesCall) Context ¶
func (c *AccountsUsersGetEmailPreferencesCall) Context(ctx context.Context) *AccountsUsersGetEmailPreferencesCall
Context sets the context to be used in this call's Do method.
func (*AccountsUsersGetEmailPreferencesCall) Do ¶
func (c *AccountsUsersGetEmailPreferencesCall) Do(opts ...googleapi.CallOption) (*EmailPreferences, error)
Do executes the "merchantapi.accounts.users.getEmailPreferences" call. Any non-2xx status code is an error. Response headers are in either *EmailPreferences.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 (*AccountsUsersGetEmailPreferencesCall) Fields ¶
func (c *AccountsUsersGetEmailPreferencesCall) Fields(s ...googleapi.Field) *AccountsUsersGetEmailPreferencesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsUsersGetEmailPreferencesCall) Header ¶
func (c *AccountsUsersGetEmailPreferencesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsUsersGetEmailPreferencesCall) IfNoneMatch ¶
func (c *AccountsUsersGetEmailPreferencesCall) IfNoneMatch(entityTag string) *AccountsUsersGetEmailPreferencesCall
IfNoneMatch sets an 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.
type AccountsUsersListCall ¶
type AccountsUsersListCall struct {
// contains filtered or unexported fields
}
func (*AccountsUsersListCall) Context ¶
func (c *AccountsUsersListCall) Context(ctx context.Context) *AccountsUsersListCall
Context sets the context to be used in this call's Do method.
func (*AccountsUsersListCall) Do ¶
func (c *AccountsUsersListCall) Do(opts ...googleapi.CallOption) (*ListUsersResponse, error)
Do executes the "merchantapi.accounts.users.list" call. Any non-2xx status code is an error. Response headers are in either *ListUsersResponse.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 (*AccountsUsersListCall) Fields ¶
func (c *AccountsUsersListCall) Fields(s ...googleapi.Field) *AccountsUsersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsUsersListCall) Header ¶
func (c *AccountsUsersListCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsUsersListCall) IfNoneMatch ¶
func (c *AccountsUsersListCall) IfNoneMatch(entityTag string) *AccountsUsersListCall
IfNoneMatch sets an 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.
func (*AccountsUsersListCall) PageSize ¶
func (c *AccountsUsersListCall) PageSize(pageSize int64) *AccountsUsersListCall
PageSize sets the optional parameter "pageSize": The maximum number of users to return. The service may return fewer than this value. If unspecified, at most 50 users will be returned. The maximum value is 100; values above 100 will be coerced to 100
func (*AccountsUsersListCall) PageToken ¶
func (c *AccountsUsersListCall) PageToken(pageToken string) *AccountsUsersListCall
PageToken sets the optional parameter "pageToken": A page token, received from a previous `ListUsers` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListUsers` must match the call that provided the page token.
func (*AccountsUsersListCall) Pages ¶
func (c *AccountsUsersListCall) Pages(ctx context.Context, f func(*ListUsersResponse) 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 AccountsUsersPatchCall ¶
type AccountsUsersPatchCall struct {
// contains filtered or unexported fields
}
func (*AccountsUsersPatchCall) Context ¶
func (c *AccountsUsersPatchCall) Context(ctx context.Context) *AccountsUsersPatchCall
Context sets the context to be used in this call's Do method.
func (*AccountsUsersPatchCall) Do ¶
func (c *AccountsUsersPatchCall) Do(opts ...googleapi.CallOption) (*User, error)
Do executes the "merchantapi.accounts.users.patch" call. Any non-2xx status code is an error. Response headers are in either *User.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 (*AccountsUsersPatchCall) Fields ¶
func (c *AccountsUsersPatchCall) Fields(s ...googleapi.Field) *AccountsUsersPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsUsersPatchCall) Header ¶
func (c *AccountsUsersPatchCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsUsersPatchCall) UpdateMask ¶
func (c *AccountsUsersPatchCall) UpdateMask(updateMask string) *AccountsUsersPatchCall
UpdateMask sets the optional parameter "updateMask": Required. List of fields being updated.
type AccountsUsersService ¶
type AccountsUsersService struct {
// contains filtered or unexported fields
}
func NewAccountsUsersService ¶
func NewAccountsUsersService(s *APIService) *AccountsUsersService
func (*AccountsUsersService) Create ¶
func (r *AccountsUsersService) Create(parent string, user *User) *AccountsUsersCreateCall
Create: Creates a Merchant Center account user. Executing this method requires admin access.
- parent: The resource name of the account for which a user will be created. Format: `accounts/{account}`.
func (*AccountsUsersService) Delete ¶
func (r *AccountsUsersService) Delete(name string) *AccountsUsersDeleteCall
Delete: Deletes a Merchant Center account user. Executing this method requires admin access.
- name: The name of the user to delete. Format: `accounts/{account}/users/{email}` It is also possible to delete the user corresponding to the caller by using `me` rather than an email address as in `accounts/{account}/users/me`.
func (*AccountsUsersService) Get ¶
func (r *AccountsUsersService) Get(name string) *AccountsUsersGetCall
Get: Retrieves a Merchant Center account user.
- name: The name of the user to retrieve. Format: `accounts/{account}/users/{email}` It is also possible to retrieve the user corresponding to the caller by using `me` rather than an email address as in `accounts/{account}/users/me`.
func (*AccountsUsersService) GetEmailPreferences ¶
func (r *AccountsUsersService) GetEmailPreferences(name string) *AccountsUsersGetEmailPreferencesCall
GetEmailPreferences: Returns the email preferences for a Merchant Center account user. Use the name=accounts/*/users/me/emailPreferences alias to get preferences for the authenticated user.
- name: The name of the `EmailPreferences` resource. Format: `accounts/{account}/users/{email}/emailPreferences`.
func (*AccountsUsersService) List ¶
func (r *AccountsUsersService) List(parent string) *AccountsUsersListCall
List: Lists all users of a Merchant Center account.
- parent: The parent, which owns this collection of users. Format: `accounts/{account}`.
func (*AccountsUsersService) Patch ¶
func (r *AccountsUsersService) Patch(name string, user *User) *AccountsUsersPatchCall
Patch: Updates a Merchant Center account user. Executing this method requires admin access.
- name: Identifier. The resource name of the user. Format: `accounts/{account}/user/{email}` Use `me` to refer to your own email address, for example `accounts/{account}/users/me`.
func (*AccountsUsersService) UpdateEmailPreferences ¶
func (r *AccountsUsersService) UpdateEmailPreferences(name string, emailpreferences *EmailPreferences) *AccountsUsersUpdateEmailPreferencesCall
UpdateEmailPreferences: Updates the email preferences for a Merchant Center account user. MCA users should specify the MCA account rather than a sub-account of the MCA. Preferences which are not explicitly selected in the update mask will not be updated. It is invalid for updates to specify an UNCONFIRMED opt-in status value. Use the name=accounts/*/users/me/emailPreferences alias to update preferences for the authenticated user.
- name: Identifier. The name of the EmailPreferences. The endpoint is only supported for the authenticated user.
type AccountsUsersUpdateEmailPreferencesCall ¶
type AccountsUsersUpdateEmailPreferencesCall struct {
// contains filtered or unexported fields
}
func (*AccountsUsersUpdateEmailPreferencesCall) Context ¶
func (c *AccountsUsersUpdateEmailPreferencesCall) Context(ctx context.Context) *AccountsUsersUpdateEmailPreferencesCall
Context sets the context to be used in this call's Do method.
func (*AccountsUsersUpdateEmailPreferencesCall) Do ¶
func (c *AccountsUsersUpdateEmailPreferencesCall) Do(opts ...googleapi.CallOption) (*EmailPreferences, error)
Do executes the "merchantapi.accounts.users.updateEmailPreferences" call. Any non-2xx status code is an error. Response headers are in either *EmailPreferences.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 (*AccountsUsersUpdateEmailPreferencesCall) Fields ¶
func (c *AccountsUsersUpdateEmailPreferencesCall) Fields(s ...googleapi.Field) *AccountsUsersUpdateEmailPreferencesCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*AccountsUsersUpdateEmailPreferencesCall) Header ¶
func (c *AccountsUsersUpdateEmailPreferencesCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*AccountsUsersUpdateEmailPreferencesCall) UpdateMask ¶
func (c *AccountsUsersUpdateEmailPreferencesCall) UpdateMask(updateMask string) *AccountsUsersUpdateEmailPreferencesCall
UpdateMask sets the optional parameter "updateMask": Required. List of fields being updated.
type AddAccountService ¶
type AddAccountService struct { // AccountAggregation: The provider is an aggregator for the account. AccountAggregation *Empty `json:"accountAggregation,omitempty"` // Provider: Optional. The provider of the service. Format: // `accounts/{account}` Provider string `json:"provider,omitempty"` // ForceSendFields is a list of field names (e.g. "AccountAggregation") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountAggregation") to include // in API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
AddAccountService: Additional instructions to add account services during creation of the account.
func (*AddAccountService) MarshalJSON ¶
func (s *AddAccountService) MarshalJSON() ([]byte, error)
type Address ¶
type Address struct { // AdministrativeArea: Required. Top-level administrative subdivision of the // country. For example, a state like California ("CA") or a province like // Quebec ("QC"). AdministrativeArea string `json:"administrativeArea,omitempty"` // City: Required. City, town or commune. May also include dependent localities // or sublocalities (For example neighborhoods or suburbs). City string `json:"city,omitempty"` // PostalCode: Required. Postal code or ZIP (For example "94043"). PostalCode string `json:"postalCode,omitempty"` // RegionCode: Required. CLDR country code // (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) (For // example "US"). RegionCode string `json:"regionCode,omitempty"` // StreetAddress: Street-level part of the address. For example: `111w 31st // Street`. StreetAddress string `json:"streetAddress,omitempty"` // ForceSendFields is a list of field names (e.g. "AdministrativeArea") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AdministrativeArea") to include // in API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Address: Shipping address of the warehouse.
func (*Address) MarshalJSON ¶
type BusinessDayConfig ¶
type BusinessDayConfig struct { // BusinessDays: Required. Regular business days. May not be empty. // // Possible values: // "WEEKDAY_UNSPECIFIED" // "MONDAY" // "TUESDAY" // "WEDNESDAY" // "THURSDAY" // "FRIDAY" // "SATURDAY" // "SUNDAY" 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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
BusinessDayConfig: Business days of the warehouse.
func (*BusinessDayConfig) MarshalJSON ¶
func (s *BusinessDayConfig) MarshalJSON() ([]byte, error)
type BusinessIdentity ¶
type BusinessIdentity struct { // BlackOwned: Optional. Specifies whether the business identifies itself as // being black-owned. This optional field will only be available for merchants // with a business country set to `US`. It is also not applicable for // marketplaces or marketplace sellers. BlackOwned *IdentityAttribute `json:"blackOwned,omitempty"` // LatinoOwned: Optional. Specifies whether the business identifies itself as // being latino-owned. This optional field will only be available for merchants // with a business country set to `US`. It is also not applicable for // marketplaces or marketplace sellers. LatinoOwned *IdentityAttribute `json:"latinoOwned,omitempty"` // Name: Identifier. The resource name of the business identity. Format: // `accounts/{account}/businessIdentity` Name string `json:"name,omitempty"` // PromotionsConsent: Optional. Whether the identity attributes may be used for // promotions. // // Possible values: // "PROMOTIONS_CONSENT_UNSPECIFIED" - Default value indicating that no // selection was made. // "PROMOTIONS_CONSENT_GIVEN" - Indicates that the account consented to // having their business identity used for promotions. // "PROMOTIONS_CONSENT_DENIED" - Indicates that the account did not consent // to having their business identity used for promotions. PromotionsConsent string `json:"promotionsConsent,omitempty"` // SmallBusiness: Optional. Specifies whether the business identifies itself as // a small business. This optional field will only be available for merchants // with a business country set to `US`. It is also not applicable for // marketplaces. SmallBusiness *IdentityAttribute `json:"smallBusiness,omitempty"` // VeteranOwned: Optional. Specifies whether the business identifies itself as // being veteran-owned. This optional field will only be available for // merchants with a business country set to `US`. It is also not applicable for // marketplaces or marketplace sellers. VeteranOwned *IdentityAttribute `json:"veteranOwned,omitempty"` // WomenOwned: Optional. Specifies whether the business identifies itself as // being women-owned. This optional field will only be available for merchants // with a business country set to `US`. It is also not applicable for // marketplaces or marketplace sellers. WomenOwned *IdentityAttribute `json:"womenOwned,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "BlackOwned") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BlackOwned") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
BusinessIdentity: Collection of information related to the identity of a business (https://support.google.com/merchants/answer/12564247).
func (*BusinessIdentity) MarshalJSON ¶
func (s *BusinessIdentity) MarshalJSON() ([]byte, error)
type BusinessInfo ¶
type BusinessInfo struct { // Address: Optional. The address of the business. Address *PostalAddress `json:"address,omitempty"` // CustomerService: Optional. The customer service of the business. CustomerService *CustomerService `json:"customerService,omitempty"` // Name: Identifier. The resource name of the business info. Format: // `accounts/{account}/businessInfo` Name string `json:"name,omitempty"` // Phone: Output only. The phone number of the business. Phone *PhoneNumber `json:"phone,omitempty"` // PhoneVerificationState: Output only. The phone verification state of the // business. // // Possible values: // "PHONE_VERIFICATION_STATE_UNSPECIFIED" - Default value. This value is // unused. // "PHONE_VERIFICATION_STATE_VERIFIED" - The phone is verified. // "PHONE_VERIFICATION_STATE_UNVERIFIED" - The phone is unverified PhoneVerificationState string `json:"phoneVerificationState,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 or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
BusinessInfo: Collection of information related to a business.
func (*BusinessInfo) MarshalJSON ¶
func (s *BusinessInfo) MarshalJSON() ([]byte, error)
type CarrierRate ¶
type CarrierRate struct { // Carrier: Required. Carrier service, such as "UPS" or "Fedex". Carrier string `json:"carrier,omitempty"` // CarrierService: Required. Carrier service, such as "ground" or "2 days". CarrierService string `json:"carrierService,omitempty"` // FlatAdjustment: Optional. Additive shipping rate modifier. Can be negative. // For example `{ "amount_micros": 1, "currency_code" : "USD" }` adds $1 to the // rate, `{ "amount_micros": -3, "currency_code" : "USD" }` removes $3 from the // rate. FlatAdjustment *Price `json:"flatAdjustment,omitempty"` // Name: Required. Name of the carrier rate. Must be unique per rate group. Name string `json:"name,omitempty"` // OriginPostalCode: Required. Shipping origin for this carrier rate. OriginPostalCode string `json:"originPostalCode,omitempty"` // PercentageAdjustment: Optional. 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%. PercentageAdjustment string `json:"percentageAdjustment,omitempty"` // ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
CarrierRate: A list of carrier rates that can be referred to by `main_table` or `single_value`.
func (*CarrierRate) MarshalJSON ¶
func (s *CarrierRate) MarshalJSON() ([]byte, error)
type ClaimHomepageRequest ¶
type ClaimHomepageRequest struct { }
ClaimHomepageRequest: Request message for the `ClaimHomepage` method.
type CreateAndConfigureAccountRequest ¶
type CreateAndConfigureAccountRequest struct { // AcceptTermsOfService: Optional. The Terms of Service (ToS) to be accepted // immediately upon account creation. AcceptTermsOfService *AcceptTermsOfService `json:"acceptTermsOfService,omitempty"` // Account: Required. The account to be created. Account *Account `json:"account,omitempty"` // Service: Optional. If specified, an account service between the account to // be created and the provider account is initialized as part of the creation. Service []*AddAccountService `json:"service,omitempty"` // Users: Optional. Users to be added to the account. Users []*CreateUserRequest `json:"users,omitempty"` // ForceSendFields is a list of field names (e.g. "AcceptTermsOfService") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AcceptTermsOfService") to include // in API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
CreateAndConfigureAccountRequest: Request message for the `CreateAndConfigureAccount` method.
func (*CreateAndConfigureAccountRequest) MarshalJSON ¶
func (s *CreateAndConfigureAccountRequest) MarshalJSON() ([]byte, error)
type CreateUserRequest ¶
type CreateUserRequest struct { // Parent: Required. The resource name of the account for which a user will be // created. Format: `accounts/{account}` Parent string `json:"parent,omitempty"` // User: Required. The user to create. User *User `json:"user,omitempty"` // UserId: Required. The email address of the user (for example, // `john.doe@gmail.com`). UserId string `json:"userId,omitempty"` // ForceSendFields is a list of field names (e.g. "Parent") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Parent") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
CreateUserRequest: Request message for the `CreateUser` method.
func (*CreateUserRequest) MarshalJSON ¶
func (s *CreateUserRequest) MarshalJSON() ([]byte, error)
type CustomerService ¶
type CustomerService struct { // Email: Optional. The email address where customer service may be reached. Email string `json:"email,omitempty"` // Phone: Optional. The phone number where customer service may be called. Phone *PhoneNumber `json:"phone,omitempty"` // Uri: Optional. The URI where customer service may be found. Uri string `json:"uri,omitempty"` // ForceSendFields is a list of field names (e.g. "Email") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
CustomerService: Customer service information.
func (*CustomerService) MarshalJSON ¶
func (s *CustomerService) MarshalJSON() ([]byte, error)
type CutoffConfig ¶
type CutoffConfig struct { // LocalCutoffTime: Time that local delivery ends for the day. LocalCutoffTime *LocalCutoffTime `json:"localCutoffTime,omitempty"` // NoDeliveryPostCutoff: Merchants can opt-out of showing n+1 day local // delivery when they have a shipping service configured to n day local // delivery. For example, if the shipping service defines same-day delivery, // and it's past the cut-off, setting this field to `true` results in the // calculated shipping service rate returning `NO_DELIVERY_POST_CUTOFF`. In the // same example, setting this field to `false` results in the calculated // shipping time being one day. This is only for local delivery. NoDeliveryPostCutoff bool `json:"noDeliveryPostCutoff,omitempty"` // StoreCloseOffsetHours: Only valid with local delivery fulfillment. // Represents cutoff time as the number of hours before store closing. Mutually // exclusive with `local_cutoff_time`. StoreCloseOffsetHours int64 `json:"storeCloseOffsetHours,omitempty,string"` // ForceSendFields is a list of field names (e.g. "LocalCutoffTime") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LocalCutoffTime") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
CutoffConfig: Configs related to local delivery ends for the day.
func (*CutoffConfig) MarshalJSON ¶
func (s *CutoffConfig) MarshalJSON() ([]byte, error)
type CutoffTime ¶
type CutoffTime struct { // Hour: Required. Hour of the cutoff time until which an order has to be // placed to be processed in the same day. Hour int64 `json:"hour,omitempty"` // Minute: Required. Minute of the cutoff time until which an order has to be // placed to be processed in the same day. Minute int64 `json:"minute,omitempty"` // TimeZone: Required. Timezone identifier // (https://developers.google.com/adwords/api/docs/appendix/codes-formats#timezone-ids) // For example "Europe/Zurich". 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 or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
CutoffTime: Business days cutoff time definition.
func (*CutoffTime) MarshalJSON ¶
func (s *CutoffTime) MarshalJSON() ([]byte, error)
type Date ¶
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 or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 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, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
func (*Date) MarshalJSON ¶
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"` // MaxHandlingDays: 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 `min_handling_days`. MaxHandlingDays int64 `json:"maxHandlingDays,omitempty"` // MaxTransitDays: 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 `min_transit_days`. MaxTransitDays int64 `json:"maxTransitDays,omitempty"` // MinHandlingDays: Minimum number of business days spent before an order is // shipped. 0 means same day shipped, 1 means next day shipped. MinHandlingDays int64 `json:"minHandlingDays,omitempty"` // MinTransitDays: Minimum number of business days that is spent in transit. 0 // means same day delivery, 1 means next day delivery. Either // `min_transit_days`, `max_transit_days` or `transit_time_table` must be set, // but not both. MinTransitDays int64 `json:"minTransitDays,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_transit_days`, // `max_transit_days` or `transit_time_table` can be set, but not both. TransitTimeTable *TransitTable `json:"transitTimeTable,omitempty"` // WarehouseBasedDeliveryTimes: Optional. Indicates that the delivery time // should be calculated per warehouse (shipping origin location) based on the // settings of the selected carrier. When set, no other transit time related // field in delivery time should be set. WarehouseBasedDeliveryTimes []*WarehouseBasedDeliveryTime `json:"warehouseBasedDeliveryTimes,omitempty"` // ForceSendFields is a list of field names (e.g. "CutoffTime") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
DeliveryTime: Time spent in various aspects from order to the delivery of the product.
func (*DeliveryTime) MarshalJSON ¶
func (s *DeliveryTime) MarshalJSON() ([]byte, error)
type DisableProgramRequest ¶
type DisableProgramRequest struct { }
DisableProgramRequest: Request message for the DisableProgram method.
type Distance ¶
type Distance struct { // Unit: Unit can differ based on country, it is parameterized to include miles // and kilometers. // // Possible values: // "UNIT_UNSPECIFIED" - Unit unspecified // "MILES" - Unit in miles // "KILOMETERS" - Unit in kilometers Unit string `json:"unit,omitempty"` // Value: Integer value of distance. 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 or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Distance: Maximum delivery radius. This is only required for the local delivery shipment type.
func (*Distance) MarshalJSON ¶
type EmailPreferences ¶
type EmailPreferences struct { // Name: Identifier. The name of the EmailPreferences. The endpoint is only // supported for the authenticated user. Name string `json:"name,omitempty"` // NewsAndTips: Optional. Updates on new features, tips and best practices. // // Possible values: // "OPT_IN_STATE_UNSPECIFIED" - Opt-in status is not specified. // "OPTED_OUT" - User has opted out of receiving this type of email. // "OPTED_IN" - User has opted in to receiving this type of email. // "UNCONFIRMED" - User has opted in to receiving this type of email and the // confirmation email has been sent, but user has not yet confirmed the opt in // (applies only to certain countries). NewsAndTips string `json:"newsAndTips,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Name") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
EmailPreferences: The categories of notifications the user opted into / opted out of. The email preferences do not include mandatory announcements as users can't opt out of them.
func (*EmailPreferences) MarshalJSON ¶
func (s *EmailPreferences) MarshalJSON() ([]byte, error)
type Empty ¶
type Empty struct { // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` }
Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
type EnableProgramRequest ¶
type EnableProgramRequest struct { }
EnableProgramRequest: Request message for the EnableProgram method.
type GeoTargetArea ¶
type GeoTargetArea 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 (for example, 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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
GeoTargetArea: A list of geotargets that defines the region area.
func (*GeoTargetArea) MarshalJSON ¶
func (s *GeoTargetArea) MarshalJSON() ([]byte, error)
type Headers ¶
type Headers struct { // Locations: Required. 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: Required. 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: Required. 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: Required. A list of inclusive order price upper bounds. The last // price's value can be infinity by setting price amount_micros = -1. For // example `[{"amount_micros": 10000000, "currency_code": "USD"}, // {"amount_micros": 500000000, "currency_code": "USD"}, {"amount_micros": -1, // "currency_code": "USD"}]` represents the headers "<= $10", "<= $500", and "> // $500". All prices within a service must have the same currency. Must be // non-empty. Must be positive except -1. Can only be set if all other fields // are not set. Prices []*Price `json:"prices,omitempty"` // Weights: Required. A list of inclusive order weight upper bounds. The last // weight's value can be infinity by setting price amount_micros = -1. For // example `[{"amount_micros": 10000000, "unit": "kg"}, {"amount_micros": // 50000000, "unit": "kg"}, {"amount_micros": -1, "unit": "kg"}]` represents // the headers "<= 10kg", "<= 50kg", and "> 50kg". All weights within a service // must have the same unit. Must be non-empty. Must be positive except -1. 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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Headers: A non-empty list of row or column headers for a table. Exactly one of `prices`, `weights`, `num_items`, `postal_code_group_names`, or `location` must be set.
func (*Headers) MarshalJSON ¶
type Homepage ¶
type Homepage struct { // Claimed: Output only. Whether the homepage is claimed. See // https://support.google.com/merchants/answer/176793. Claimed bool `json:"claimed,omitempty"` // Name: Identifier. The resource name of the store's homepage. Format: // `accounts/{account}/homepage` Name string `json:"name,omitempty"` // Uri: Required. The URI (typically a URL) of the store's homepage. Uri string `json:"uri,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Claimed") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Claimed") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Homepage: A store's homepage.
func (*Homepage) MarshalJSON ¶
type IdentityAttribute ¶
type IdentityAttribute struct { // IdentityDeclaration: Required. The declaration of identity for this // attribute. // // Possible values: // "IDENTITY_DECLARATION_UNSPECIFIED" - Default value indicating that no // selection was made. // "SELF_IDENTIFIES_AS" - Indicates that the account identifies with the // attribute. // "DOES_NOT_SELF_IDENTIFY_AS" - Indicates that the account does not identify // with the attribute. IdentityDeclaration string `json:"identityDeclaration,omitempty"` // ForceSendFields is a list of field names (e.g. "IdentityDeclaration") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "IdentityDeclaration") to include // in API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
IdentityAttribute: All information related to an identity attribute.
func (*IdentityAttribute) MarshalJSON ¶
func (s *IdentityAttribute) MarshalJSON() ([]byte, error)
type Impact ¶
type Impact struct { // RegionCode: The CLDR region code (https://cldr.unicode.org/) where this // issue applies. RegionCode string `json:"regionCode,omitempty"` // Severity: The severity of the issue on the destination and region. // // Possible values: // "SEVERITY_UNSPECIFIED" - The severity is unknown. // "CRITICAL" - The issue causes offers to not serve. // "ERROR" - The issue might affect offers (in the future) or might be an // indicator of issues with offers. // "SUGGESTION" - The issue is a suggestion for improvement. Severity string `json:"severity,omitempty"` // ForceSendFields is a list of field names (e.g. "RegionCode") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "RegionCode") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Impact: The impact of the issue on a region.
func (*Impact) MarshalJSON ¶
type ImpactedDestination ¶
type ImpactedDestination struct { // Impacts: The (negative) impact for various regions on the given destination. Impacts []*Impact `json:"impacts,omitempty"` // ReportingContext: The impacted reporting context. // // Possible values: // "REPORTING_CONTEXT_ENUM_UNSPECIFIED" - Not specified. // "SHOPPING_ADS" - [Shopping // ads](https://support.google.com/merchants/answer/6149970). // "DISCOVERY_ADS" - Deprecated: Use `DEMAND_GEN_ADS` instead. [Discovery and // Demand Gen ads](https://support.google.com/merchants/answer/13389785). // "DEMAND_GEN_ADS" - [Demand Gen // ads](https://support.google.com/merchants/answer/13389785). // "DEMAND_GEN_ADS_DISCOVER_SURFACE" - [Demand Gen ads on Discover // surface](https://support.google.com/merchants/answer/13389785). // "VIDEO_ADS" - [Video // ads](https://support.google.com/google-ads/answer/6340491). // "DISPLAY_ADS" - [Display // ads](https://support.google.com/merchants/answer/6069387). // "LOCAL_INVENTORY_ADS" - [Local inventory // ads](https://support.google.com/merchants/answer/3271956). // "VEHICLE_INVENTORY_ADS" - [Vehicle inventory // ads](https://support.google.com/merchants/answer/11544533). // "FREE_LISTINGS" - [Free product // listings](https://support.google.com/merchants/answer/9199328). // "FREE_LOCAL_LISTINGS" - [Free local product // listings](https://support.google.com/merchants/answer/9825611). // "FREE_LOCAL_VEHICLE_LISTINGS" - [Free local vehicle // listings](https://support.google.com/merchants/answer/11544533). // "YOUTUBE_SHOPPING" - [YouTube // Shopping](https://support.google.com/merchants/answer/13478370). // "CLOUD_RETAIL" - [Cloud // retail](https://cloud.google.com/solutions/retail). // "LOCAL_CLOUD_RETAIL" - [Local cloud // retail](https://cloud.google.com/solutions/retail). ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "Impacts") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Impacts") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ImpactedDestination: The impact of the issue on a destination.
func (*ImpactedDestination) MarshalJSON ¶
func (s *ImpactedDestination) MarshalJSON() ([]byte, error)
type Interval ¶
type Interval struct { // EndTime: Optional. Exclusive end of the interval. If specified, a Timestamp // matching this interval will have to be before the end. EndTime string `json:"endTime,omitempty"` // StartTime: Optional. Inclusive start of the interval. If specified, a // Timestamp matching this interval will have to be the same or after the // start. 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 or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Interval: Represents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.
func (*Interval) MarshalJSON ¶
type ListAccountIssuesResponse ¶
type ListAccountIssuesResponse struct { // AccountIssues: The issues from the specified account. AccountIssues []*AccountIssue `json:"accountIssues,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. "AccountIssues") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountIssues") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListAccountIssuesResponse: Response message for the `ListAccountIssues` method.
func (*ListAccountIssuesResponse) MarshalJSON ¶
func (s *ListAccountIssuesResponse) MarshalJSON() ([]byte, error)
type ListAccountTaxResponse ¶
type ListAccountTaxResponse struct { // AccountTaxes: Page of accounttax settings AccountTaxes []*AccountTax `json:"accountTaxes,omitempty"` // NextPageToken: The token for the retrieval of the next page of account tax // settings. 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. "AccountTaxes") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountTaxes") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListAccountTaxResponse: Response to account tax list request This method can only be called on a multi-client account, otherwise it'll return an error.
func (*ListAccountTaxResponse) MarshalJSON ¶
func (s *ListAccountTaxResponse) MarshalJSON() ([]byte, error)
type ListAccountsResponse ¶
type ListAccountsResponse struct { // Accounts: The accounts matching the `ListAccountsRequest`. Accounts []*Account `json:"accounts,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. "Accounts") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Accounts") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListAccountsResponse: Response message for the `ListAccounts` method.
func (*ListAccountsResponse) MarshalJSON ¶
func (s *ListAccountsResponse) MarshalJSON() ([]byte, error)
type ListOnlineReturnPoliciesResponse ¶
type ListOnlineReturnPoliciesResponse struct { // NextPageToken: A token, which can be sent as `pageToken` to retrieve the // next page. If this field is omitted, there are no subsequent pages. NextPageToken string `json:"nextPageToken,omitempty"` // OnlineReturnPolicies: The retrieved return policies. OnlineReturnPolicies []*OnlineReturnPolicy `json:"onlineReturnPolicies,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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListOnlineReturnPoliciesResponse: Response message for the `ListOnlineReturnPolicies` method.
func (*ListOnlineReturnPoliciesResponse) MarshalJSON ¶
func (s *ListOnlineReturnPoliciesResponse) MarshalJSON() ([]byte, error)
type ListProgramsResponse ¶
type ListProgramsResponse struct { // NextPageToken: A token that 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"` // Programs: The programs for the given account. Programs []*Program `json:"programs,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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListProgramsResponse: Response message for the ListPrograms method.
func (*ListProgramsResponse) MarshalJSON ¶
func (s *ListProgramsResponse) MarshalJSON() ([]byte, error)
type ListRegionsResponse ¶
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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListRegionsResponse: Response message for the `ListRegions` method.
func (*ListRegionsResponse) MarshalJSON ¶
func (s *ListRegionsResponse) MarshalJSON() ([]byte, error)
type ListSubAccountsResponse ¶
type ListSubAccountsResponse struct { // Accounts: The accounts for which the given parent account is an aggregator. Accounts []*Account `json:"accounts,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. "Accounts") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Accounts") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListSubAccountsResponse: Response message for the `ListSubAccounts` method.
func (*ListSubAccountsResponse) MarshalJSON ¶
func (s *ListSubAccountsResponse) MarshalJSON() ([]byte, error)
type ListUsersResponse ¶
type ListUsersResponse 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"` // Users: The users from the specified account. Users []*User `json:"users,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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ListUsersResponse: Response message for the `ListUsers` method.
func (*ListUsersResponse) MarshalJSON ¶
func (s *ListUsersResponse) MarshalJSON() ([]byte, error)
type LocalCutoffTime ¶
type LocalCutoffTime struct { // Hour: Hour local delivery orders must be placed by to process the same day. Hour int64 `json:"hour,omitempty,string"` // Minute: Minute local delivery orders must be placed by to process the same // day. Minute int64 `json:"minute,omitempty,string"` // ForceSendFields is a list of field names (e.g. "Hour") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
LocalCutoffTime: Time that local delivery ends for the day.
func (*LocalCutoffTime) MarshalJSON ¶
func (s *LocalCutoffTime) MarshalJSON() ([]byte, error)
type LocationIdSet ¶
type LocationIdSet struct { // LocationIds: 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 (For example, 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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
LocationIdSet: A list of location ID sets. Must be non-empty. Can only be set if all other fields are not set.
func (*LocationIdSet) MarshalJSON ¶
func (s *LocationIdSet) MarshalJSON() ([]byte, error)
type LoyaltyProgram ¶
type LoyaltyProgram struct { // LoyaltyProgramTiers: Optional. Loyalty program tier of this shipping // service. LoyaltyProgramTiers []*LoyaltyProgramTiers `json:"loyaltyProgramTiers,omitempty"` // ProgramLabel: This is the loyalty program label set in your loyalty program // settings in Merchant Center. This sub-attribute allows Google to map your // loyalty program to eligible offers. ProgramLabel string `json:"programLabel,omitempty"` // ForceSendFields is a list of field names (e.g. "LoyaltyProgramTiers") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "LoyaltyProgramTiers") to include // in API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
LoyaltyProgram: Loyalty program (https://support.google.com/merchants/answer/12922446) provided by a merchant.
func (*LoyaltyProgram) MarshalJSON ¶
func (s *LoyaltyProgram) MarshalJSON() ([]byte, error)
type LoyaltyProgramTiers ¶
type LoyaltyProgramTiers struct { // TierLabel: The tier label [tier_label] sub-attribute differentiates offer // level benefits between each tier. This value is also set in your program // settings in Merchant Center, and is required for data source changes even if // your loyalty program only has 1 tier. TierLabel string `json:"tierLabel,omitempty"` // ForceSendFields is a list of field names (e.g. "TierLabel") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "TierLabel") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
LoyaltyProgramTiers: Subset of a merchants loyalty program.
func (*LoyaltyProgramTiers) MarshalJSON ¶
func (s *LoyaltyProgramTiers) MarshalJSON() ([]byte, error)
type MinimumOrderValueTable ¶
type MinimumOrderValueTable struct { // StoreCodeSetWithMovs: Required. A list of store code sets sharing the same // minimum order value (MOV). 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. StoreCodeSetWithMovs []*StoreCodeSetWithMov `json:"storeCodeSetWithMovs,omitempty"` // ForceSendFields is a list of field names (e.g. "StoreCodeSetWithMovs") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
MinimumOrderValueTable: Table of per store minimum order values for the pickup fulfillment type.
func (*MinimumOrderValueTable) MarshalJSON ¶
func (s *MinimumOrderValueTable) MarshalJSON() ([]byte, error)
type OnlineReturnPolicy ¶
type OnlineReturnPolicy struct { // AcceptDefectiveOnly: This field specifies if merchant only accepts defective // products for returns, and this field is required. AcceptDefectiveOnly bool `json:"acceptDefectiveOnly,omitempty"` // AcceptExchange: This field specifies if merchant allows customers to // exchange products, this field is required. AcceptExchange bool `json:"acceptExchange,omitempty"` // Countries: The countries of sale where the return policy applies. The values // must be a valid 2 letter ISO 3166 code. Countries []string `json:"countries,omitempty"` // ItemConditions: The item conditions accepted for returns must 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: This field represents the unique user-defined label of the return // policy. It is important to note that the same label cannot be used in // different return policies for the same country. Unless a product specifies a // specific label attribute, policies will be automatically labeled as // 'default'. To assign a custom return policy to certain product groups, // follow the instructions provided in the [Return policy label] // (https://support.google.com/merchants/answer/9445425). The label can contain // up to 50 characters. Label string `json:"label,omitempty"` // Name: Identifier. The name of the `OnlineReturnPolicy` resource. Format: // `accounts/{account}/onlineReturnPolicies/{return_policy}` Name string `json:"name,omitempty"` // Policy: The return policy. Policy *Policy `json:"policy,omitempty"` // ProcessRefundDays: The field specifies the number of days it takes for // merchants to process refunds, field is optional. ProcessRefundDays int64 `json:"processRefundDays,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 *RestockingFee `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" - Return by mail. // "IN_STORE" - Return in store. // "AT_A_KIOSK" - Return 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. It must be a valid URL. ReturnPolicyUri string `json:"returnPolicyUri,omitempty"` // ReturnShippingFee: The return shipping fee. Should be set only when customer // need to download and print the return label. ReturnShippingFee *ReturnShippingFee `json:"returnShippingFee,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AcceptDefectiveOnly") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AcceptDefectiveOnly") to include // in API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
OnlineReturnPolicy: Online return policy (https://support.google.com/merchants/answer/10220642) object. This is currently used to represent return policies for ads and free listings programs.
func (*OnlineReturnPolicy) MarshalJSON ¶
func (s *OnlineReturnPolicy) MarshalJSON() ([]byte, error)
type PhoneNumber ¶
type PhoneNumber struct { // E164Number: The phone number, represented as a leading plus sign ('+'), // followed by a phone number that uses a relaxed ITU E.164 format consisting // of the country calling code (1 to 3 digits) and the subscriber number, with // no additional spaces or formatting, e.g.: - correct: "+15552220123" - // incorrect: "+1 (555) 222-01234 x123". The ITU E.164 format limits the latter // to 12 digits, but in practice not all countries respect that, so we relax // that restriction here. National-only numbers are not allowed. References: - // https://www.itu.int/rec/T-REC-E.164-201011-I - // https://en.wikipedia.org/wiki/E.164. - // https://en.wikipedia.org/wiki/List_of_country_calling_codes E164Number string `json:"e164Number,omitempty"` // Extension: The phone number's extension. The extension is not standardized // in ITU recommendations, except for being defined as a series of numbers with // a maximum length of 40 digits. Other than digits, some other dialing // characters such as ',' (indicating a wait) or '#' may be stored here. Note // that no regions currently use extensions with short codes, so this field is // normally only set in conjunction with an E.164 number. It is held separately // from the E.164 number to allow for short code extensions in the future. Extension string `json:"extension,omitempty"` // ShortCode: A short code. Reference(s): - // https://en.wikipedia.org/wiki/Short_code ShortCode *ShortCode `json:"shortCode,omitempty"` // ForceSendFields is a list of field names (e.g. "E164Number") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "E164Number") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
PhoneNumber: An object representing a phone number, suitable as an API wire format. This representation: - should not be used for locale-specific formatting of a phone number, such as "+1 (650) 253-0000 ext. 123" - is not designed for efficient storage - may not be suitable for dialing - specialized libraries (see references) should be used to parse the number for that purpose To do something meaningful with this number, such as format it for various use-cases, convert it to an `i18n.phonenumbers.PhoneNumber` object first. For instance, in Java this would be: com.google.type.PhoneNumber wireProto = com.google.type.PhoneNumber.newBuilder().build(); com.google.i18n.phonenumbers.Phonenumber.PhoneNumber phoneNumber = PhoneNumberUtil.getInstance().parse(wireProto.getE164Number(), "ZZ"); if (!wireProto.getExtension().isEmpty()) { phoneNumber.setExtension(wireProto.getExtension()); } Reference(s): - https://github.com/google/libphonenumber
func (*PhoneNumber) MarshalJSON ¶
func (s *PhoneNumber) MarshalJSON() ([]byte, error)
type Policy ¶
type Policy struct { // Days: The number of days items can be returned after delivery, where one day // is defined as 24 hours after the delivery timestamp. Required for // `NUMBER_OF_DAYS_AFTER_DELIVERY` 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" - The number of days within which a return // is valid after delivery. // "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 or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Policy: The available policies.
func (*Policy) MarshalJSON ¶
type PostalAddress ¶
type PostalAddress struct { // AddressLines: Unstructured address lines describing the lower levels of an // address. Because values in address_lines do not have type information and // may sometimes contain multiple values in a single field (e.g. "Austin, TX"), // it is important that the line order is clear. The order of address lines // should be "envelope order" for the country/region of the address. In places // where this can vary (e.g. Japan), address_language is used to make it // explicit (e.g. "ja" for large-to-small ordering and "ja-Latn" or "en" for // small-to-large). This way, the most specific line of an address can be // selected based on the language. The minimum permitted structural // representation of an address consists of a region_code with all remaining // information placed in the address_lines. It would be possible to format such // an address very approximately without geocoding, but no semantic reasoning // could be made about any of the address components until it was at least // partially resolved. Creating an address only containing a region_code and // address_lines, and then geocoding is the recommended way to handle // completely unstructured addresses (as opposed to guessing which parts of the // address should be localities or administrative areas). AddressLines []string `json:"addressLines,omitempty"` // AdministrativeArea: Optional. Highest administrative subdivision which is // used for postal addresses of a country or region. For example, this can be a // state, a province, an oblast, or a prefecture. Specifically, for Spain this // is the province and not the autonomous community (e.g. "Barcelona" and not // "Catalonia"). Many countries don't use an administrative area in postal // addresses. E.g. in Switzerland this should be left unpopulated. AdministrativeArea string `json:"administrativeArea,omitempty"` // LanguageCode: Optional. BCP-47 language code of the contents of this address // (if known). This is often the UI language of the input form or is expected // to match one of the languages used in the address' country/region, or their // transliterated equivalents. This can affect formatting in certain countries, // but is not critical to the correctness of the data and will never affect any // validation or other non-formatting related operations. If this value is not // known, it should be omitted (rather than specifying a possibly incorrect // default). Examples: "zh-Hant", "ja", "ja-Latn", "en". LanguageCode string `json:"languageCode,omitempty"` // Locality: Optional. Generally refers to the city/town portion of the // address. Examples: US city, IT comune, UK post town. In regions of the world // where localities are not well defined or do not fit into this structure // well, leave locality empty and use address_lines. Locality string `json:"locality,omitempty"` // Organization: Optional. The name of the organization at the address. Organization string `json:"organization,omitempty"` // PostalCode: Optional. Postal code of the address. Not all countries use or // require postal codes to be present, but where they are used, they may // trigger additional validation with other parts of the address (e.g. // state/zip validation in the U.S.A.). PostalCode string `json:"postalCode,omitempty"` // Recipients: Optional. The recipient at the address. This field may, under // certain circumstances, contain multiline information. For example, it might // contain "care of" information. Recipients []string `json:"recipients,omitempty"` // RegionCode: Required. CLDR region code of the country/region of the address. // This is never inferred and it is up to the user to ensure the value is // correct. See https://cldr.unicode.org/ and // https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html // for details. Example: "CH" for Switzerland. RegionCode string `json:"regionCode,omitempty"` // Revision: The schema revision of the `PostalAddress`. This must be set to 0, // which is the latest revision. All new revisions **must** be backward // compatible with old revisions. Revision int64 `json:"revision,omitempty"` // SortingCode: Optional. Additional, country-specific, sorting code. This is // not used in most regions. Where it is used, the value is either a string // like "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a // number alone, representing the "sector code" (Jamaica), "delivery area // indicator" (Malawi) or "post office indicator" (e.g. Côte d'Ivoire). SortingCode string `json:"sortingCode,omitempty"` // Sublocality: Optional. Sublocality of the address. For example, this can be // neighborhoods, boroughs, districts. Sublocality string `json:"sublocality,omitempty"` // ForceSendFields is a list of field names (e.g. "AddressLines") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AddressLines") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
PostalAddress: Represents a postal address, e.g. for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created via user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, please see: https://support.google.com/business/answer/6397478
func (*PostalAddress) MarshalJSON ¶
func (s *PostalAddress) MarshalJSON() ([]byte, error)
type PostalCodeArea ¶
type PostalCodeArea struct { // PostalCodes: Required. A range of postal codes. PostalCodes []*PostalCodeRange `json:"postalCodes,omitempty"` // RegionCode: Required. CLDR territory code // (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) 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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
PostalCodeArea: A list of postal codes that defines the region area. Note: All regions defined using postal codes are accessible through the account's `ShippingSettings.postalCodeGroups` resource.
func (*PostalCodeArea) MarshalJSON ¶
func (s *PostalCodeArea) MarshalJSON() ([]byte, error)
type PostalCodeRange ¶
type PostalCodeRange 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 or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
PostalCodeRange: A range of postal codes that defines the region area.
func (*PostalCodeRange) MarshalJSON ¶
func (s *PostalCodeRange) MarshalJSON() ([]byte, error)
type Price ¶
type Price struct { // AmountMicros: The price represented as a number in micros (1 million micros // is an equivalent to one's currency standard unit, for example, 1 USD = // 1000000 micros). AmountMicros int64 `json:"amountMicros,omitempty,string"` // CurrencyCode: The currency of the price using three-letter acronyms // according to ISO 4217 (http://en.wikipedia.org/wiki/ISO_4217). CurrencyCode string `json:"currencyCode,omitempty"` // ForceSendFields is a list of field names (e.g. "AmountMicros") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AmountMicros") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Price: The price represented as a number and currency.
func (*Price) MarshalJSON ¶
type ProductChange ¶
type ProductChange struct { // NewValue: The new value of the changed resource or attribute. NewValue string `json:"newValue,omitempty"` // OldValue: The old value of the changed resource or attribute. OldValue string `json:"oldValue,omitempty"` // RegionCode: Countries that have the change (if applicable) RegionCode string `json:"regionCode,omitempty"` // ReportingContext: Reporting contexts that have the change (if applicable) // // Possible values: // "REPORTING_CONTEXT_ENUM_UNSPECIFIED" - Not specified. // "SHOPPING_ADS" - [Shopping // ads](https://support.google.com/merchants/answer/6149970). // "DISCOVERY_ADS" - Deprecated: Use `DEMAND_GEN_ADS` instead. [Discovery and // Demand Gen ads](https://support.google.com/merchants/answer/13389785). // "DEMAND_GEN_ADS" - [Demand Gen // ads](https://support.google.com/merchants/answer/13389785). // "DEMAND_GEN_ADS_DISCOVER_SURFACE" - [Demand Gen ads on Discover // surface](https://support.google.com/merchants/answer/13389785). // "VIDEO_ADS" - [Video // ads](https://support.google.com/google-ads/answer/6340491). // "DISPLAY_ADS" - [Display // ads](https://support.google.com/merchants/answer/6069387). // "LOCAL_INVENTORY_ADS" - [Local inventory // ads](https://support.google.com/merchants/answer/3271956). // "VEHICLE_INVENTORY_ADS" - [Vehicle inventory // ads](https://support.google.com/merchants/answer/11544533). // "FREE_LISTINGS" - [Free product // listings](https://support.google.com/merchants/answer/9199328). // "FREE_LOCAL_LISTINGS" - [Free local product // listings](https://support.google.com/merchants/answer/9825611). // "FREE_LOCAL_VEHICLE_LISTINGS" - [Free local vehicle // listings](https://support.google.com/merchants/answer/11544533). // "YOUTUBE_SHOPPING" - [YouTube // Shopping](https://support.google.com/merchants/answer/13478370). // "CLOUD_RETAIL" - [Cloud // retail](https://cloud.google.com/solutions/retail). // "LOCAL_CLOUD_RETAIL" - [Local cloud // retail](https://cloud.google.com/solutions/retail). ReportingContext string `json:"reportingContext,omitempty"` // ForceSendFields is a list of field names (e.g. "NewValue") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NewValue") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ProductChange: The change that happened to the product including old value, new value, country code as the region code and reporting context.
func (*ProductChange) MarshalJSON ¶
func (s *ProductChange) MarshalJSON() ([]byte, error)
type ProductStatusChangeMessage ¶
type ProductStatusChangeMessage struct { // Account: The target account that owns the entity that changed. Format : // `accounts/{merchant_id}` Account string `json:"account,omitempty"` // Attribute: The attribute in the resource that changed, in this case it will // be always `Status`. // // Possible values: // "ATTRIBUTE_UNSPECIFIED" - Unspecified attribute // "STATUS" - Status of the changed entity Attribute string `json:"attribute,omitempty"` // Changes: A message to describe the change that happened to the product Changes []*ProductChange `json:"changes,omitempty"` // ManagingAccount: The account that manages the merchant's account. can be the // same as merchant id if it is standalone account. Format : // `accounts/{service_provider_id}` ManagingAccount string `json:"managingAccount,omitempty"` // Resource: The product name. Format: // `{product.name=accounts/{account}/products/{product}}` Resource string `json:"resource,omitempty"` // ResourceId: The product id. ResourceId string `json:"resourceId,omitempty"` // ResourceType: The resource that changed, in this case it will always be // `Product`. // // Possible values: // "RESOURCE_UNSPECIFIED" - Unspecified resource // "PRODUCT" - Resource type : product ResourceType string `json:"resourceType,omitempty"` // ForceSendFields is a list of field names (e.g. "Account") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ProductStatusChangeMessage: The message that the merchant will receive to notify about product status change event
func (*ProductStatusChangeMessage) MarshalJSON ¶
func (s *ProductStatusChangeMessage) MarshalJSON() ([]byte, error)
type Program ¶
type Program struct { // ActiveRegionCodes: Output only. The regions in which the account is actively // participating in the program. Active regions are defined as those where all // program requirements affecting the regions have been met. Region codes are // defined by CLDR (https://cldr.unicode.org/). This is either a country where // the program applies specifically to that country or `001` when the program // applies globally. ActiveRegionCodes []string `json:"activeRegionCodes,omitempty"` // DocumentationUri: Output only. The URL of a Merchant Center help page // describing the program. DocumentationUri string `json:"documentationUri,omitempty"` // Name: Identifier. The resource name of the program. Format: // `accounts/{account}/programs/{program}` Name string `json:"name,omitempty"` // State: Output only. The participation state of the account in the program. // // Possible values: // "STATE_UNSPECIFIED" - Default value. This value is unused. // "NOT_ELIGIBLE" - The account is not eligible to participate in the // program. // "ELIGIBLE" - The account is eligible to participate in the program. // "ENABLED" - The program is enabled for the account. State string `json:"state,omitempty"` // UnmetRequirements: Output only. The requirements that the account has not // yet satisfied that are affecting participation in the program. UnmetRequirements []*Requirement `json:"unmetRequirements,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ActiveRegionCodes") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ActiveRegionCodes") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Program: Defines participation in a given program for the specified account. Programs provide a mechanism for adding functionality to merchant accounts. A typical example of this is the Free product listings (https://support.google.com/merchants/topic/9240261?ref_topic=7257954,7259405,&sjid=796648681813264022-EU) program, which enables products from a merchant's store to be shown across Google for free.
func (*Program) MarshalJSON ¶
type RateGroup ¶
type RateGroup struct { // ApplicableShippingLabels: Required. A list of shipping labels // (https://support.google.com/merchants/answer/6324504) 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. ApplicableShippingLabels []string `json:"applicableShippingLabels,omitempty"` // CarrierRates: Optional. A list of carrier rates that can be referred to by // `main_table` or `single_value`. CarrierRates []*CarrierRate `json:"carrierRates,omitempty"` // MainTable: A table defining the rate group, when `single_value` is not // expressive enough. Can only be set if `single_value` is not set. MainTable *Table `json:"mainTable,omitempty"` // Name: Optional. Name of the rate group. If set has to be unique within // shipping service. Name string `json:"name,omitempty"` // SingleValue: The value of the rate group (For example flat rate $10). Can // only be set if `main_table` and `subtables` are not set. SingleValue *Value `json:"singleValue,omitempty"` // Subtables: Optional. A list of subtables referred to by `main_table`. Can // only be set if `main_table` 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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
RateGroup: Shipping rate group definitions. Only the last one is allowed to have an empty `applicable_shipping_labels`, which means "everything else". The other `applicable_shipping_labels` must not overlap.
func (*RateGroup) MarshalJSON ¶
type Region ¶
type Region struct { // DisplayName: Optional. The display name of the region. DisplayName string `json:"displayName,omitempty"` // GeotargetArea: Optional. A list of geotargets that defines the region area. GeotargetArea *GeoTargetArea `json:"geotargetArea,omitempty"` // Name: Identifier. The resource name of the region. Format: // `accounts/{account}/regions/{region}` Name string `json:"name,omitempty"` // PostalCodeArea: Optional. A list of postal codes that defines the region // area. PostalCodeArea *PostalCodeArea `json:"postalCodeArea,omitempty"` // RegionalInventoryEligible: Output only. Indicates if the region is eligible // for use in the Regional Inventory configuration. RegionalInventoryEligible bool `json:"regionalInventoryEligible,omitempty"` // ShippingEligible: Output only. Indicates if the region is eligible for 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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. 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. For more information, see Set up regions (https://support.google.com/merchants/answer/7410946#zippy=%2Ccreate-a-new-region) for more information.
func (*Region) MarshalJSON ¶
type Required ¶
type Required struct { // TermsOfService: The termsOfService // (google.shopping.merchant.accounts.v1main.TermsOfService) that need to be // accepted. TermsOfService string `json:"termsOfService,omitempty"` // TosFileUri: Full URL to the terms of service file. This field is the same as // TermsOfService.file_uri (TermsOfService.file_uri), it is added here for // convenience only. TosFileUri string `json:"tosFileUri,omitempty"` // ForceSendFields is a list of field names (e.g. "TermsOfService") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "TermsOfService") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Required: Describes the terms of service which are required to be accepted.
func (*Required) MarshalJSON ¶
type Requirement ¶
type Requirement struct { // AffectedRegionCodes: Output only. The regions that are currently affected by // this requirement not being met. Region codes are defined by CLDR // (https://cldr.unicode.org/). This is either a country where the program // applies specifically to that country or `001` when the program applies // globally. AffectedRegionCodes []string `json:"affectedRegionCodes,omitempty"` // DocumentationUri: Output only. The URL of a help page describing the // requirement. DocumentationUri string `json:"documentationUri,omitempty"` // Title: Output only. Name of the requirement. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "AffectedRegionCodes") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AffectedRegionCodes") to include // in API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Requirement: Defines a requirement specified for participation in the program.
func (*Requirement) MarshalJSON ¶
func (s *Requirement) MarshalJSON() ([]byte, error)
type RestockingFee ¶
type RestockingFee struct { // FixedFee: Fixed restocking fee. FixedFee *Price `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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
RestockingFee: The restocking fee. This can be a flat fee or a micro percent.
func (*RestockingFee) MarshalJSON ¶
func (s *RestockingFee) MarshalJSON() ([]byte, error)
type ReturnShippingFee ¶
type ReturnShippingFee 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 *Price `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" - Customers 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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ReturnShippingFee: 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 (*ReturnShippingFee) MarshalJSON ¶
func (s *ReturnShippingFee) MarshalJSON() ([]byte, error)
type Row ¶
type Row struct { // Cells: Required. 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. 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 or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Row: Include a list of cells.
func (*Row) MarshalJSON ¶
type Service ¶
type Service struct { // Active: Required. A boolean exposing the active status of the shipping // service. Active bool `json:"active,omitempty"` // CurrencyCode: The CLDR code of the currency to which this service applies. // Must match that of the prices in rate groups. CurrencyCode string `json:"currencyCode,omitempty"` // DeliveryCountries: Required. The CLDR territory code of the countries to // which the service applies. DeliveryCountries []string `json:"deliveryCountries,omitempty"` // DeliveryTime: Required. Time spent in various aspects from order to the // delivery of the product. DeliveryTime *DeliveryTime `json:"deliveryTime,omitempty"` // LoyaltyPrograms: Optional. Loyalty programs that this shipping service is // limited to. LoyaltyPrograms []*LoyaltyProgram `json:"loyaltyPrograms,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"` // RateGroups: Optional. Shipping rate group definitions. Only the last one is // allowed to have an empty `applicable_shipping_labels`, which means // "everything else". The other `applicable_shipping_labels` must not overlap. RateGroups []*RateGroup `json:"rateGroups,omitempty"` // ServiceName: Required. Free-form name of the service. Must be unique within // target account. ServiceName string `json:"serviceName,omitempty"` // ShipmentType: Type of locations this service ships orders to. // // Possible values: // "SHIPMENT_TYPE_UNSPECIFIED" - This service did not specify shipment type. // "DELIVERY" - This service ships orders to an address chosen by the // customer. // "LOCAL_DELIVERY" - This service ships orders to an address chosen by the // customer. The order is shipped from a local store near by. // "COLLECTION_POINT" - This service ships orders to an address chosen by the // customer. The order is shipped from a collection point. ShipmentType string `json:"shipmentType,omitempty"` // StoreConfig: A list of stores your products are delivered from. This is only // valid for the local delivery shipment type. StoreConfig *StoreConfig `json:"storeConfig,omitempty"` // ForceSendFields is a list of field names (e.g. "Active") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Service: Shipping service.
func (*Service) MarshalJSON ¶
type ShippingSettings ¶
type ShippingSettings struct { // Etag: Required. This field is used for avoid async issue. Make sure shipping // setting data didn't change between get call and insert call. The user should // do following steps: 1. Set etag field as empty string for initial shipping // setting creation. 2. After initial creation, call get method to obtain an // etag and current shipping setting data before call insert. 3. Modify to // wanted shipping setting information. 4. Call insert method with the wanted // shipping setting information with the etag obtained from step 2. 5. If // shipping setting data changed between step 2 and step 4. Insert request will // fail because the etag changes every time the shipping setting data changes. // User should repeate step 2-4 with the new etag. Etag string `json:"etag,omitempty"` // Name: Identifier. The resource name of the shipping setting. Format: // `accounts/{account}/shippingSetting` Name string `json:"name,omitempty"` // Services: Optional. The target account's list of services. Services []*Service `json:"services,omitempty"` // Warehouses: Optional. A list of warehouses which can be referred to in // `services`. Warehouses []*Warehouse `json:"warehouses,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Etag") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Etag") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ShippingSettings: The merchant account's shipping setting ((https://support.google.com/merchants/answer/6069284).
func (*ShippingSettings) MarshalJSON ¶
func (s *ShippingSettings) MarshalJSON() ([]byte, error)
type ShortCode ¶
type ShortCode struct { // Number: Required. The short code digits, without a leading plus ('+') or // country calling code, e.g. "611". Number string `json:"number,omitempty"` // RegionCode: Required. The BCP-47 region code of the location where calls to // this short code can be made, such as "US" and "BB". Reference(s): - // http://www.unicode.org/reports/tr35/#unicode_region_subtag RegionCode string `json:"regionCode,omitempty"` // ForceSendFields is a list of field names (e.g. "Number") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Number") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
ShortCode: An object representing a short code, which is a phone number that is typically much shorter than regular phone numbers and can be used to address messages in MMS and SMS systems, as well as for abbreviated dialing (e.g. "Text 611 to see how many minutes you have remaining on your plan."). Short codes are restricted to a region and are not internationally dialable, which means the same short code can exist in different regions, with different usage and pricing, even if those regions share the same country calling code (e.g. US and CA).
func (*ShortCode) MarshalJSON ¶
type StoreCodeSetWithMov ¶
type StoreCodeSetWithMov struct { // StoreCodes: Optional. 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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
StoreCodeSetWithMov: 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 (*StoreCodeSetWithMov) MarshalJSON ¶
func (s *StoreCodeSetWithMov) MarshalJSON() ([]byte, error)
type StoreConfig ¶
type StoreConfig struct { // CutoffConfig: Configs related to local delivery ends for the day. CutoffConfig *CutoffConfig `json:"cutoffConfig,omitempty"` // ServiceRadius: Maximum delivery radius. This is only required for the local // delivery shipment type. ServiceRadius *Distance `json:"serviceRadius,omitempty"` // StoreCodes: Optional. A list of store codes that provide local delivery. If // empty, then `all_stores` must be true. StoreCodes []string `json:"storeCodes,omitempty"` // StoreServiceType: Indicates whether all stores, or selected stores, listed // by this merchant provide local delivery. // // Possible values: // "STORE_SERVICE_TYPE_UNSPECIFIED" - Did not specify store service type. // "ALL_STORES" - Indicates whether all stores, current and future, listed by // this merchant provide local delivery. // "SELECTED_STORES" - Indicates that only the stores listed in `store_codes` // are eligible for local delivery. StoreServiceType string `json:"storeServiceType,omitempty"` // ForceSendFields is a list of field names (e.g. "CutoffConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CutoffConfig") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
StoreConfig: A list of stores your products are delivered from. This is only valid for the local delivery shipment type.
func (*StoreConfig) MarshalJSON ¶
func (s *StoreConfig) MarshalJSON() ([]byte, error)
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: Required. Headers of the table's rows. RowHeaders *Headers `json:"rowHeaders,omitempty"` // Rows: Required. The list of rows that constitute the table. Must have the // same length as `row_headers`. 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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Table: A table defining the rate group, when `single_value` is not expressive enough.
func (*Table) MarshalJSON ¶
type TaxPostalCodeRange ¶
type TaxPostalCodeRange struct { // End: The end of the postal code range. Will be the same as start if not // specified. End string `json:"end,omitempty"` // Start: Required. The start of the postal code range, which is also the // smallest in the range. Start string `json:"start,omitempty"` // ForceSendFields is a list of field names (e.g. "End") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "End") to include in API requests // with the JSON null value. By default, fields with empty values are omitted // from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
TaxPostalCodeRange: A range of postal codes that defines the area.
func (*TaxPostalCodeRange) MarshalJSON ¶
func (s *TaxPostalCodeRange) MarshalJSON() ([]byte, error)
type TaxRule ¶
type TaxRule struct { // EffectiveTimePeriod: Required. Time period when this rule is effective. If // the duration is missing from effective_time listed, then it is open ended to // the future. The start of this time period is inclusive, and the end is // exclusive. EffectiveTimePeriod *Interval `json:"effectiveTimePeriod,omitempty"` // LocationId: The admin_id or criteria_id of the region in which this rule is // applicable. LocationId int64 `json:"locationId,omitempty,string"` // PostCodeRange: The range of postal codes in which this rule is applicable. PostCodeRange *TaxPostalCodeRange `json:"postCodeRange,omitempty"` // RegionCode: Region code in which this rule is applicable RegionCode string `json:"regionCode,omitempty"` // SelfSpecifiedRateMicros: A fixed rate specified in micros, where 100% = // 1_000_000. Suitable for origin-based states. SelfSpecifiedRateMicros int64 `json:"selfSpecifiedRateMicros,omitempty,string"` // ShippingTaxed: If set, shipping charge is taxed (at the same rate as // product) when delivering to this admin's area. Can only be set on US states // without category. ShippingTaxed bool `json:"shippingTaxed,omitempty"` // UseGoogleRate: Rate that depends on delivery location: if merchant has a // nexus in corresponding US state, rates from authorities with jurisdiction // over delivery area are added up. UseGoogleRate bool `json:"useGoogleRate,omitempty"` // ForceSendFields is a list of field names (e.g. "EffectiveTimePeriod") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "EffectiveTimePeriod") to include // in API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
TaxRule: Primary type convension percent micro : 100% = 1 000 000 and 1% = 10 000 cannot be negative. Information about tax nexus and related parameters applicable to orders delivered to the area covered by a single tax admin. Nexus is created when a merchant is doing business in an area administered by tax admin (only US states are supported for nexus configuration). If merchant has nexus in a US state, merchant needs to pay tax to all tax authorities associated with the shipping destination. Next Id : 8
func (*TaxRule) MarshalJSON ¶
type TermsOfService ¶
type TermsOfService struct { // External: Whether this terms of service version is external. External terms // of service versions can only be agreed through external processes and not // directly by the merchant through UI or API. External bool `json:"external,omitempty"` // FileUri: URI for terms of service file that needs to be displayed to signing // users. FileUri string `json:"fileUri,omitempty"` // Kind: The Kind this terms of service version applies to. // // Possible values: // "TERMS_OF_SERVICE_KIND_UNSPECIFIED" - Default value. This value is unused. // "MERCHANT_CENTER" - Merchant Center application. Kind string `json:"kind,omitempty"` // Name: Identifier. The resource name of the terms of service version. Format: // `termsOfService/{version}` Name string `json:"name,omitempty"` // RegionCode: Region code as defined by CLDR (https://cldr.unicode.org/). This // is either a country where the ToS applies specifically to that country or // `001` when the same `TermsOfService` can be signed in any country. However // note that when signing a ToS that applies globally we still expect that a // specific country is provided (this should be merchant business country or // program country of participation). RegionCode string `json:"regionCode,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "External") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "External") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
TermsOfService: A `TermsOfService`.
func (*TermsOfService) MarshalJSON ¶
func (s *TermsOfService) MarshalJSON() ([]byte, error)
type TermsOfServiceAcceptCall ¶
type TermsOfServiceAcceptCall struct {
// contains filtered or unexported fields
}
func (*TermsOfServiceAcceptCall) Account ¶
func (c *TermsOfServiceAcceptCall) Account(account string) *TermsOfServiceAcceptCall
Account sets the optional parameter "account": Required. The account for which to accept the ToS.
func (*TermsOfServiceAcceptCall) Context ¶
func (c *TermsOfServiceAcceptCall) Context(ctx context.Context) *TermsOfServiceAcceptCall
Context sets the context to be used in this call's Do method.
func (*TermsOfServiceAcceptCall) Do ¶
func (c *TermsOfServiceAcceptCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "merchantapi.termsOfService.accept" call. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*TermsOfServiceAcceptCall) Fields ¶
func (c *TermsOfServiceAcceptCall) Fields(s ...googleapi.Field) *TermsOfServiceAcceptCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TermsOfServiceAcceptCall) Header ¶
func (c *TermsOfServiceAcceptCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TermsOfServiceAcceptCall) IfNoneMatch ¶
func (c *TermsOfServiceAcceptCall) IfNoneMatch(entityTag string) *TermsOfServiceAcceptCall
IfNoneMatch sets an 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.
func (*TermsOfServiceAcceptCall) RegionCode ¶
func (c *TermsOfServiceAcceptCall) RegionCode(regionCode string) *TermsOfServiceAcceptCall
RegionCode sets the optional parameter "regionCode": Required. Region code as defined by CLDR (https://cldr.unicode.org/). This is either a country when the ToS applies specifically to that country or 001 when it applies globally.
type TermsOfServiceAgreementState ¶
type TermsOfServiceAgreementState struct { // Accepted: The accepted terms of service of this kind and for the associated // region_code Accepted *Accepted `json:"accepted,omitempty"` // Name: Identifier. The resource name of the terms of service version. Format: // `accounts/{account}/termsOfServiceAgreementState/{identifier}` Name string `json:"name,omitempty"` // RegionCode: Region code as defined by https://cldr.unicode.org/. This is the // country the current state applies to. RegionCode string `json:"regionCode,omitempty"` // Required: The required terms of service Required *Required `json:"required,omitempty"` // TermsOfServiceKind: Terms of Service kind associated with the particular // version. // // Possible values: // "TERMS_OF_SERVICE_KIND_UNSPECIFIED" - Default value. This value is unused. // "MERCHANT_CENTER" - Merchant Center application. TermsOfServiceKind string `json:"termsOfServiceKind,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Accepted") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Accepted") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
TermsOfServiceAgreementState: This resource represents the agreement state for a given account and terms of service kind. The state is as follows: * If the merchant has accepted a terms of service: accepted (TermsOfServiceAggrementState.accepted) will be populated, otherwise it will be empty * If the merchant must sign a terms of service: required (TermsOfServiceAggrementState.required) will be populated, otherwise it will be empty. Note that both required (TermsOfServiceAggrementState.required) and accepted (TermsOfServiceAggrementState.accepted) can be present. In this case the `accepted` terms of services will have an expiration date set in the valid_until (Accepted.valid_until) field. The `required` terms of services need to be accepted before `valid_until` in order for the account to continue having a valid agreement. When accepting new terms of services we expect 3Ps to display the text associated with the given terms of service agreement (the url to the file containing the text is added in the Required message below as tos_file_uri (Accepted.tos_file_uri). The actual acceptance of the terms of service is done by calling accept on the TermsOfService (TermsOfService) resource.
func (*TermsOfServiceAgreementState) MarshalJSON ¶
func (s *TermsOfServiceAgreementState) MarshalJSON() ([]byte, error)
type TermsOfServiceGetCall ¶
type TermsOfServiceGetCall struct {
// contains filtered or unexported fields
}
func (*TermsOfServiceGetCall) Context ¶
func (c *TermsOfServiceGetCall) Context(ctx context.Context) *TermsOfServiceGetCall
Context sets the context to be used in this call's Do method.
func (*TermsOfServiceGetCall) Do ¶
func (c *TermsOfServiceGetCall) Do(opts ...googleapi.CallOption) (*TermsOfService, error)
Do executes the "merchantapi.termsOfService.get" call. Any non-2xx status code is an error. Response headers are in either *TermsOfService.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 (*TermsOfServiceGetCall) Fields ¶
func (c *TermsOfServiceGetCall) Fields(s ...googleapi.Field) *TermsOfServiceGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TermsOfServiceGetCall) Header ¶
func (c *TermsOfServiceGetCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TermsOfServiceGetCall) IfNoneMatch ¶
func (c *TermsOfServiceGetCall) IfNoneMatch(entityTag string) *TermsOfServiceGetCall
IfNoneMatch sets an 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.
type TermsOfServiceRetrieveLatestCall ¶
type TermsOfServiceRetrieveLatestCall struct {
// contains filtered or unexported fields
}
func (*TermsOfServiceRetrieveLatestCall) Context ¶
func (c *TermsOfServiceRetrieveLatestCall) Context(ctx context.Context) *TermsOfServiceRetrieveLatestCall
Context sets the context to be used in this call's Do method.
func (*TermsOfServiceRetrieveLatestCall) Do ¶
func (c *TermsOfServiceRetrieveLatestCall) Do(opts ...googleapi.CallOption) (*TermsOfService, error)
Do executes the "merchantapi.termsOfService.retrieveLatest" call. Any non-2xx status code is an error. Response headers are in either *TermsOfService.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 (*TermsOfServiceRetrieveLatestCall) Fields ¶
func (c *TermsOfServiceRetrieveLatestCall) Fields(s ...googleapi.Field) *TermsOfServiceRetrieveLatestCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more details.
func (*TermsOfServiceRetrieveLatestCall) Header ¶
func (c *TermsOfServiceRetrieveLatestCall) Header() http.Header
Header returns a http.Header that can be modified by the caller to add headers to the request.
func (*TermsOfServiceRetrieveLatestCall) IfNoneMatch ¶
func (c *TermsOfServiceRetrieveLatestCall) IfNoneMatch(entityTag string) *TermsOfServiceRetrieveLatestCall
IfNoneMatch sets an 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.
func (*TermsOfServiceRetrieveLatestCall) Kind ¶
func (c *TermsOfServiceRetrieveLatestCall) Kind(kind string) *TermsOfServiceRetrieveLatestCall
Kind sets the optional parameter "kind": The Kind this terms of service version applies to.
Possible values:
"TERMS_OF_SERVICE_KIND_UNSPECIFIED" - Default value. This value is unused. "MERCHANT_CENTER" - Merchant Center application.
func (*TermsOfServiceRetrieveLatestCall) RegionCode ¶
func (c *TermsOfServiceRetrieveLatestCall) RegionCode(regionCode string) *TermsOfServiceRetrieveLatestCall
RegionCode sets the optional parameter "regionCode": Region code as defined by CLDR (https://cldr.unicode.org/). This is either a country when the ToS applies specifically to that country or 001 when it applies globally.
type TermsOfServiceService ¶
type TermsOfServiceService struct {
// contains filtered or unexported fields
}
func NewTermsOfServiceService ¶
func NewTermsOfServiceService(s *APIService) *TermsOfServiceService
func (*TermsOfServiceService) Accept ¶
func (r *TermsOfServiceService) Accept(name string) *TermsOfServiceAcceptCall
Accept: Accepts a `TermsOfService`. Executing this method requires admin access.
- name: The resource name of the terms of service version. Format: `termsOfService/{version}`.
func (*TermsOfServiceService) Get ¶
func (r *TermsOfServiceService) Get(name string) *TermsOfServiceGetCall
Get: Retrieves the `TermsOfService` associated with the provided version.
- name: The resource name of the terms of service version. Format: `termsOfService/{version}`.
func (*TermsOfServiceService) RetrieveLatest ¶
func (r *TermsOfServiceService) RetrieveLatest() *TermsOfServiceRetrieveLatestCall
RetrieveLatest: Retrieves the latest version of the `TermsOfService` for a given `kind` and `region_code`.
type TimeZone ¶
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 or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
TimeZone: Represents a time zone from the IANA Time Zone Database (https://www.iana.org/time-zones).
func (*TimeZone) MarshalJSON ¶
type TransitTable ¶
type TransitTable struct { // PostalCodeGroupNames: Required. A list of region names Region.name . 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: Required. If there's only one dimension set of // `postal_code_group_names` or `transit_time_labels`, there are multiple rows // each with one value for that dimension. If there are two dimensions, each // row corresponds to a `postal_code_group_names`, and columns (values) to a // `transit_time_labels`. Rows []*TransitTimeRow `json:"rows,omitempty"` // TransitTimeLabels: Required. 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 or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
TransitTable: Transit time table, number of business days spent in transit based on row and column dimensions. Either `min_transit_days`, `max_transit_days` or `transit_time_table` can be set, but not both.
func (*TransitTable) MarshalJSON ¶
func (s *TransitTable) MarshalJSON() ([]byte, error)
type TransitTimeRow ¶
type TransitTimeRow struct { // Values: Required. Transit time range (min-max) in business days. Values []*TransitTimeValue `json:"values,omitempty"` // ForceSendFields is a list of field names (e.g. "Values") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
TransitTimeRow: If there's only one dimension set of `postal_code_group_names` or `transit_time_labels`, there are multiple rows each with one value for that dimension. If there are two dimensions, each row corresponds to a `postal_code_group_names`, and columns (values) to a `transit_time_labels`.
func (*TransitTimeRow) MarshalJSON ¶
func (s *TransitTimeRow) MarshalJSON() ([]byte, error)
type TransitTimeValue ¶
type TransitTimeValue struct { // MaxTransitDays: Must be greater than or equal to `min_transit_days`. MaxTransitDays int64 `json:"maxTransitDays,omitempty"` // MinTransitDays: Minimum transit time range in business days. 0 means same // day delivery, 1 means next day delivery. MinTransitDays int64 `json:"minTransitDays,omitempty"` // ForceSendFields is a list of field names (e.g. "MaxTransitDays") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MaxTransitDays") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
TransitTimeValue: Transit time range (min-max) in business days.
func (*TransitTimeValue) MarshalJSON ¶
func (s *TransitTimeValue) MarshalJSON() ([]byte, error)
type UnclaimHomepageRequest ¶
type UnclaimHomepageRequest struct { }
UnclaimHomepageRequest: Request message for the `UnclaimHomepage` method.
type User ¶
type User struct { // AccessRights: Optional. The access rights // (https://support.google.com/merchants/answer/12160472?sjid=6789834943175119429-EU#accesstypes) // the user has. // // Possible values: // "ACCESS_RIGHT_UNSPECIFIED" - Default value. This value is unused. // "STANDARD" - Standard access rights. // "ADMIN" - Admin access rights. // "PERFORMANCE_REPORTING" - Users with this right have access to performance // and insights. AccessRights []string `json:"accessRights,omitempty"` // Name: Identifier. The resource name of the user. Format: // `accounts/{account}/user/{email}` Use `me` to refer to your own email // address, for example `accounts/{account}/users/me`. Name string `json:"name,omitempty"` // State: Output only. The state of the user. // // Possible values: // "STATE_UNSPECIFIED" - Default value. This value is unused. // "PENDING" - The user is pending confirmation. In this state, the user // first needs to accept the invitation before performing other actions. // "VERIFIED" - The user is verified. State string `json:"state,omitempty"` // ServerResponse contains the HTTP response code and headers from the server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AccessRights") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccessRights") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
User: A user (https://support.google.com/merchants/answer/12160472).
func (*User) MarshalJSON ¶
type Value ¶
type Value struct { // CarrierRate: 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. CarrierRate string `json:"carrierRate,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 be shipped. 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 (For example, "5.4"). Can only be set if all other fields // are not set. PricePercentage string `json:"pricePercentage,omitempty"` // Subtable: The name of a subtable. Can only be set in table cells (For // example, not for single values), and only if all other fields are not set. Subtable string `json:"subtable,omitempty"` // ForceSendFields is a list of field names (e.g. "CarrierRate") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CarrierRate") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Value: The single value of a rate group or the value of a rate group table's cell. Exactly one of `no_shipping`, `flat_rate`, `price_percentage`, `carrier_rateName`, `subtable_name` must be set.
func (*Value) MarshalJSON ¶
type Warehouse ¶
type Warehouse struct { // BusinessDayConfig: Business days of the warehouse. If not set, will be // Monday to Friday by default. BusinessDayConfig *BusinessDayConfig `json:"businessDayConfig,omitempty"` // CutoffTime: Required. The latest time of day that an order can be accepted // and begin processing. Later orders will be processed in the next day. The // time is based on the warehouse postal code. CutoffTime *WarehouseCutoffTime `json:"cutoffTime,omitempty"` // HandlingDays: Required. The number of days it takes for this warehouse to // pack up and ship an item. This is on the warehouse level, but can be // overridden on the offer level based on the attributes of an item. HandlingDays int64 `json:"handlingDays,omitempty,string"` // Name: Required. The name of the warehouse. Must be unique within account. Name string `json:"name,omitempty"` // ShippingAddress: Required. Shipping address of the warehouse. ShippingAddress *Address `json:"shippingAddress,omitempty"` // ForceSendFields is a list of field names (e.g. "BusinessDayConfig") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BusinessDayConfig") to include in // API requests with the JSON null value. By default, fields with empty values // are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Warehouse: A fulfillment warehouse, which stores and handles inventory. Next tag: 7
func (*Warehouse) MarshalJSON ¶
type WarehouseBasedDeliveryTime ¶
type WarehouseBasedDeliveryTime struct { // Carrier: Required. Carrier, such as "UPS" or "Fedex". Carrier string `json:"carrier,omitempty"` // CarrierService: Required. Carrier service, such as "ground" or "2 days". // The name of the service must be in the eddSupportedServices list. CarrierService string `json:"carrierService,omitempty"` // Warehouse: Required. Warehouse name. This should match warehouse Warehouse string `json:"warehouse,omitempty"` // ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
WarehouseBasedDeliveryTime: Indicates that the delivery time should be calculated per warehouse (shipping origin location) based on the settings of the selected carrier. When set, no other transit time related field in `delivery_time` should be set.
func (*WarehouseBasedDeliveryTime) MarshalJSON ¶
func (s *WarehouseBasedDeliveryTime) MarshalJSON() ([]byte, error)
type WarehouseCutoffTime ¶
type WarehouseCutoffTime struct { // Hour: Required. Hour of the cutoff time until which an order has to be // placed to be processed in the same day by the warehouse. Hour is based on // the timezone of warehouse. Hour int64 `json:"hour,omitempty"` // Minute: Required. Minute of the cutoff time until which an order has to be // placed to be processed in the same day by the warehouse. Minute is based on // the timezone of warehouse. Minute int64 `json:"minute,omitempty"` // ForceSendFields is a list of field names (e.g. "Hour") to unconditionally // include in API requests. By default, fields with empty or default values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. 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. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
WarehouseCutoffTime: The latest time of day that an order can be accepted and begin processing. Later orders will be processed in the next day. The time is based on the warehouse postal code.
func (*WarehouseCutoffTime) MarshalJSON ¶
func (s *WarehouseCutoffTime) MarshalJSON() ([]byte, error)
type Weight ¶
type Weight struct { // AmountMicros: Required. The weight represented as a number in micros (1 // million micros is an equivalent to one's currency standard unit, for // example, 1 kg = 1000000 micros). This field can also be set as infinity by // setting to -1. This field only support -1 and positive value. AmountMicros int64 `json:"amountMicros,omitempty,string"` // Unit: Required. The weight unit. Acceptable values are: kg and lb // // Possible values: // "WEIGHT_UNIT_UNSPECIFIED" - unit unspecified // "POUND" - lb unit. // "KILOGRAM" - kg unit. Unit string `json:"unit,omitempty"` // ForceSendFields is a list of field names (e.g. "AmountMicros") to // unconditionally include in API requests. By default, fields with empty or // default values are omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more // details. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AmountMicros") to include in API // requests with the JSON null value. By default, fields with empty values are // omitted from API requests. See // https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details. NullFields []string `json:"-"` }
Weight: The weight represented as the value in string and the unit.