merchantapi
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package merchantapi provides access to the Merchant API.
For product documentation, see:https://developers.google.com/merchant/api
Library status¶
These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany 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/ordertracking/v1"...ctx := context.Background()merchantapiService, err := merchantapi.NewService(ctx)
In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options¶
To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.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 OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)merchantapiService, err := merchantapi.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seegoogle.golang.org/api/option.ClientOption for details on options.
Index¶
- Constants
- type AccountsOrderTrackingSignalsCreateCall
- func (c *AccountsOrderTrackingSignalsCreateCall) Context(ctx context.Context) *AccountsOrderTrackingSignalsCreateCall
- func (c *AccountsOrderTrackingSignalsCreateCall) Do(opts ...googleapi.CallOption) (*OrderTrackingSignal, error)
- func (c *AccountsOrderTrackingSignalsCreateCall) Fields(s ...googleapi.Field) *AccountsOrderTrackingSignalsCreateCall
- func (c *AccountsOrderTrackingSignalsCreateCall) Header() http.Header
- func (c *AccountsOrderTrackingSignalsCreateCall) OrderTrackingSignalId(orderTrackingSignalId string) *AccountsOrderTrackingSignalsCreateCall
- type AccountsOrderTrackingSignalsService
- type AccountsService
- type DateTime
- type LineItemDetails
- type OrderTrackingSignal
- type Price
- type ProductChange
- type ProductStatusChangeMessage
- type Service
- type ShipmentLineItemMapping
- type ShippingInfo
- type TimeZone
Constants¶
const (// Manage your product listings and accounts for Google ShoppingContentScope = "https://www.googleapis.com/auth/content")OAuth2 scopes used by this API.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeAccountsOrderTrackingSignalsCreateCall¶
type AccountsOrderTrackingSignalsCreateCall struct {// contains filtered or unexported fields}func (*AccountsOrderTrackingSignalsCreateCall)Context¶
func (c *AccountsOrderTrackingSignalsCreateCall) Context(ctxcontext.Context) *AccountsOrderTrackingSignalsCreateCall
Context sets the context to be used in this call's Do method.
func (*AccountsOrderTrackingSignalsCreateCall)Do¶
func (c *AccountsOrderTrackingSignalsCreateCall) Do(opts ...googleapi.CallOption) (*OrderTrackingSignal,error)
Do executes the "merchantapi.accounts.orderTrackingSignals.create" call.Any non-2xx status code is an error. Response headers are in either*OrderTrackingSignal.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*AccountsOrderTrackingSignalsCreateCall)Fields¶
func (c *AccountsOrderTrackingSignalsCreateCall) Fields(s ...googleapi.Field) *AccountsOrderTrackingSignalsCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*AccountsOrderTrackingSignalsCreateCall)Header¶
func (c *AccountsOrderTrackingSignalsCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*AccountsOrderTrackingSignalsCreateCall)OrderTrackingSignalId¶
func (c *AccountsOrderTrackingSignalsCreateCall) OrderTrackingSignalId(orderTrackingSignalIdstring) *AccountsOrderTrackingSignalsCreateCall
OrderTrackingSignalId sets the optional parameter "orderTrackingSignalId":Output only. The ID that uniquely identifies this order tracking signal.
typeAccountsOrderTrackingSignalsService¶
type AccountsOrderTrackingSignalsService struct {// contains filtered or unexported fields}funcNewAccountsOrderTrackingSignalsService¶
func NewAccountsOrderTrackingSignalsService(s *Service) *AccountsOrderTrackingSignalsService
func (*AccountsOrderTrackingSignalsService)Create¶
func (r *AccountsOrderTrackingSignalsService) Create(parentstring, ordertrackingsignal *OrderTrackingSignal) *AccountsOrderTrackingSignalsCreateCall
Create: Creates new order tracking signal.
- parent: The account of the business for which the order signal is created.Format: accounts/{account}.
typeAccountsService¶
type AccountsService struct {OrderTrackingSignals *AccountsOrderTrackingSignalsService// contains filtered or unexported fields}funcNewAccountsService¶
func NewAccountsService(s *Service) *AccountsService
typeDateTime¶
type DateTime struct {// Day: Optional. Day of month. Must be from 1 to 31 and valid for the year and// month, or 0 if specifying a datetime without a day.Dayint64 `json:"day,omitempty"`// Hours: Optional. Hours of day in 24 hour format. Should be from 0 to 23,// defaults to 0 (midnight). An API may choose to allow the value "24:00:00"// for scenarios like business closing time.Hoursint64 `json:"hours,omitempty"`// Minutes: Optional. Minutes of hour of day. Must be from 0 to 59, defaults to// 0.Minutesint64 `json:"minutes,omitempty"`// Month: Optional. Month of year. Must be from 1 to 12, or 0 if specifying a// datetime without a month.Monthint64 `json:"month,omitempty"`// Nanos: Optional. Fractions of seconds in nanoseconds. Must be from 0 to// 999,999,999, defaults to 0.Nanosint64 `json:"nanos,omitempty"`// Seconds: Optional. Seconds of minutes of the time. Must normally be from 0// to 59, defaults to 0. An API may allow the value 60 if it allows// leap-seconds.Secondsint64 `json:"seconds,omitempty"`// TimeZone: Time zone.TimeZone *TimeZone `json:"timeZone,omitempty"`// UtcOffset: UTC offset. Must be whole seconds, between -18 hours and +18// hours. For example, a UTC offset of -4:00 would be represented as { seconds:// -14400 }.UtcOffsetstring `json:"utcOffset,omitempty"`// Year: Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a// datetime without a year.Yearint64 `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:"-"`}DateTime: Represents civil time (or occasionally physical time). This typecan represent a civil time in one of a few possible ways: * When utc_offsetis set and time_zone is unset: a civil time on a calendar day with aparticular offset from UTC. * When time_zone is set and utc_offset is unset:a civil time on a calendar day in a particular time zone. * When neithertime_zone nor utc_offset is set: a civil time on a calendar day in localtime. The date is relative to the Proleptic Gregorian Calendar. If year,month, or day are 0, the DateTime is considered not to have a specific year,month, or day respectively. This type may also be used to represent aphysical time if all the date and time fields are set and either case of the`time_offset` oneof is set. Consider using `Timestamp` message for physicaltime instead. If your use case also would like to store the user's timezone,that can be done in another field. This type is more flexible than someapplications may want. Make sure to document and validate your application'slimitations.
func (DateTime)MarshalJSON¶
typeLineItemDetails¶
type LineItemDetails struct {// Brand: Optional. Brand of the product.Brandstring `json:"brand,omitempty"`// Gtins: Optional. The Global Trade Item Numbers.Gtins []string `json:"gtins,omitempty"`// LineItemId: Required. The ID for this line item.LineItemIdstring `json:"lineItemId,omitempty"`// Mpn: Optional. The manufacturer part number.Mpnstring `json:"mpn,omitempty"`// ProductId: Required. The Content API REST ID of the product, in the form// channel:contentLanguage:targetCountry:offerId.ProductIdstring `json:"productId,omitempty"`// ProductTitle: Optional. Plain text title of this product.ProductTitlestring `json:"productTitle,omitempty"`// Quantity: Required. The quantity of the line item in the order.Quantityint64 `json:"quantity,omitempty,string"`// ForceSendFields is a list of field names (e.g. "Brand") 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. "Brand") 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:"-"`}LineItemDetails: The line items of the order.
func (LineItemDetails)MarshalJSON¶
func (sLineItemDetails) MarshalJSON() ([]byte,error)
typeOrderTrackingSignal¶
type OrderTrackingSignal struct {// CustomerShippingFee: Optional. The shipping fee of the order; this value// should be set to zero in the case of free shipping.CustomerShippingFee *Price `json:"customerShippingFee,omitempty"`// DeliveryPostalCode: Optional. The delivery postal code, as a continuous// string without spaces or dashes, for example "95016". This field will be// anonymized in returned OrderTrackingSignal creation response.DeliveryPostalCodestring `json:"deliveryPostalCode,omitempty"`// DeliveryRegionCode: Optional. The [CLDR territory code]// (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) for the// shipping destination.DeliveryRegionCodestring `json:"deliveryRegionCode,omitempty"`// LineItems: Required. Information about line items in the order.LineItems []*LineItemDetails `json:"lineItems,omitempty"`// MerchantId: Optional. The Google Merchant Center ID of this order tracking// signal. This value is optional. If left unset, the caller's Merchant Center// ID is used. You must request access in order to provide data on behalf of// another business. For more information, see Submitting Order Tracking// Signals (/shopping-content/guides/order-tracking-signals).MerchantIdint64 `json:"merchantId,omitempty,string"`// OrderCreatedTime: Required. The time when the order was created on the// businesses side. Include the year and timezone string, if available.OrderCreatedTime *DateTime `json:"orderCreatedTime,omitempty"`// OrderId: Required. The ID of the order on the businesses side. This field// will be hashed in returned OrderTrackingSignal creation response.OrderIdstring `json:"orderId,omitempty"`// OrderTrackingSignalId: Output only. The ID that uniquely identifies this// order tracking signal.OrderTrackingSignalIdint64 `json:"orderTrackingSignalId,omitempty,string"`// ShipmentLineItemMapping: Optional. The mapping of the line items to the// shipment information.ShipmentLineItemMapping []*ShipmentLineItemMapping `json:"shipmentLineItemMapping,omitempty"`// ShippingInfo: Required. The shipping information for the order.ShippingInfo []*ShippingInfo `json:"shippingInfo,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CustomerShippingFee") to// unconditionally include in API requests. By default, fields with empty 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. "CustomerShippingFee") 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:"-"`}OrderTrackingSignal: Represents a business trade from which signals areextracted, such as shipping.
func (OrderTrackingSignal)MarshalJSON¶
func (sOrderTrackingSignal) MarshalJSON() ([]byte,error)
typePrice¶
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).AmountMicrosint64 `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).CurrencyCodestring `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¶
typeProductChange¶
type ProductChange struct {// NewValue: The new value of the changed resource or attribute. If empty, it// means that the product was deleted. Will have one of these values :// (`approved`, `pending`, `disapproved`, “)NewValuestring `json:"newValue,omitempty"`// OldValue: The old value of the changed resource or attribute. If empty, it// means that the product was created. Will have one of these values :// (`approved`, `pending`, `disapproved`, “)OldValuestring `json:"oldValue,omitempty"`// RegionCode: Countries that have the change (if applicable). Represented in// the ISO 3166 format.RegionCodestring `json:"regionCode,omitempty"`// ReportingContext: Reporting contexts that have the change (if applicable).// Currently this field supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`,// `YOUTUBE_SHOPPING`, `YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum// value ReportingContextEnum// (/merchant/api/reference/rest/Shared.Types/ReportingContextEnum)//// 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_AFFILIATE" - [Youtube// Affiliate](https://support.google.com/youtube/answer/13376398).// "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).// "PRODUCT_REVIEWS" - [Product// Reviews](https://support.google.com/merchants/answer/14620732).// "MERCHANT_REVIEWS" - [Merchant// Reviews](https://developers.google.com/merchant-review-feeds).// "YOUTUBE_CHECKOUT" - YouTube Checkout .ReportingContextstring `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 (sProductChange) MarshalJSON() ([]byte,error)
typeProductStatusChangeMessage¶
type ProductStatusChangeMessage struct {// Account: The target account that owns the entity that changed. Format :// `accounts/{merchant_id}`Accountstring `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 entityAttributestring `json:"attribute,omitempty"`// Changes: A message to describe the change that happened to the productChanges []*ProductChange `json:"changes,omitempty"`// EventTime: The time at which the event was generated. If you want to order// the notification messages you receive you should rely on this field not on// the order of receiving the notifications.EventTimestring `json:"eventTime,omitempty"`// ExpirationTime: Optional. The product expiration time. This field will not// be set if the notification is sent for a product deletion event.ExpirationTimestring `json:"expirationTime,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}`ManagingAccountstring `json:"managingAccount,omitempty"`// Resource: The product name. Format: `accounts/{account}/products/{product}`Resourcestring `json:"resource,omitempty"`// ResourceId: The product id.ResourceIdstring `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 : productResourceTypestring `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 tonotify about product status change event
func (ProductStatusChangeMessage)MarshalJSON¶
func (sProductStatusChangeMessage) MarshalJSON() ([]byte,error)
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentAccounts *AccountsService// contains filtered or unexported fields} funcNewdeprecated
New creates a new Service. 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.
funcNewService¶
NewService creates a new Service.
typeShipmentLineItemMapping¶
type ShipmentLineItemMapping struct {// LineItemId: Required. The line item ID.LineItemIdstring `json:"lineItemId,omitempty"`// Quantity: Required. The line item quantity in the shipment.Quantityint64 `json:"quantity,omitempty,string"`// ShipmentId: Required. The shipment ID. This field will be hashed in returned// OrderTrackingSignal creation response.ShipmentIdstring `json:"shipmentId,omitempty"`// ForceSendFields is a list of field names (e.g. "LineItemId") 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. "LineItemId") 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:"-"`}ShipmentLineItemMapping: Represents how many items are in the shipment forthe given shipment_id and line_item_id.
func (ShipmentLineItemMapping)MarshalJSON¶
func (sShipmentLineItemMapping) MarshalJSON() ([]byte,error)
typeShippingInfo¶
type ShippingInfo struct {// ActualDeliveryTime: Optional. The time when the shipment was actually// delivered. Include the year and timezone string, if available. This field is// required, if one of the following fields is absent: tracking_id or// carrier_name.ActualDeliveryTime *DateTime `json:"actualDeliveryTime,omitempty"`// Carrier: Optional. The name of the shipping carrier for the delivery. This// field is required if one of the following fields is absent:// earliest_delivery_promise_time, latest_delivery_promise_time, and// actual_delivery_time.Carrierstring `json:"carrier,omitempty"`// CarrierService: Optional. The service type for fulfillment, such as GROUND,// FIRST_CLASS, etc.CarrierServicestring `json:"carrierService,omitempty"`// EarliestDeliveryPromiseTime: Optional. The earliest delivery promised time.// Include the year and timezone string, if available. This field is required,// if one of the following fields is absent: tracking_id or carrier_name.EarliestDeliveryPromiseTime *DateTime `json:"earliestDeliveryPromiseTime,omitempty"`// LatestDeliveryPromiseTime: Optional. The latest delivery promised time.// Include the year and timezone string, if available. This field is required,// if one of the following fields is absent: tracking_id or carrier_name.LatestDeliveryPromiseTime *DateTime `json:"latestDeliveryPromiseTime,omitempty"`// OriginPostalCode: Required. The origin postal code, as a continuous string// without spaces or dashes, for example "95016". This field will be anonymized// in returned OrderTrackingSignal creation response.OriginPostalCodestring `json:"originPostalCode,omitempty"`// OriginRegionCode: Required. The [CLDR territory code]// (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) for the// shipping origin.OriginRegionCodestring `json:"originRegionCode,omitempty"`// ShipmentId: Required. The shipment ID. This field will be hashed in returned// OrderTrackingSignal creation response.ShipmentIdstring `json:"shipmentId,omitempty"`// ShippedTime: Optional. The time when the shipment was shipped. Include the// year and timezone string, if available.ShippedTime *DateTime `json:"shippedTime,omitempty"`// ShippingStatus: Required. The status of the shipment.//// Possible values:// "SHIPPING_STATE_UNSPECIFIED" - The shipping status is not known to// business.// "SHIPPED" - All items are shipped.// "DELIVERED" - The shipment is already delivered.ShippingStatusstring `json:"shippingStatus,omitempty"`// TrackingId: Optional. The tracking ID of the shipment. This field is// required if one of the following fields is absent:// earliest_delivery_promise_time, latest_delivery_promise_time, and// actual_delivery_time.TrackingIdstring `json:"trackingId,omitempty"`// ForceSendFields is a list of field names (e.g. "ActualDeliveryTime") 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. "ActualDeliveryTime") 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:"-"`}ShippingInfo: The shipping information for the order.
func (ShippingInfo)MarshalJSON¶
func (sShippingInfo) MarshalJSON() ([]byte,error)
typeTimeZone¶
type TimeZone struct {// Id: IANA Time Zone Database time zone. For example "America/New_York".Idstring `json:"id,omitempty"`// Version: Optional. IANA Time Zone Database version number. For example// "2019a".Versionstring `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).