Movatterモバイル変換


[0]ホーム

URL:


content

package
v0.257.0Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2025 License:BSD-3-ClauseImports:14Imported by:0

Details

Repository

github.com/googleapis/google-api-go-client

Links

Documentation

Overview

Package content provides access to the Content API for Shopping.

For product documentation, see:https://developers.google.com/shopping-content

Creating a client

Usage example:

import "google.golang.org/api/content/v2sandbox"...ctx := context.Background()contentService, err := content.NewService(ctx)

In this example, Google Application Default Credentials are used for authentication.

For information on how to create and obtain Application Default Credentials, 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 API keys), use option.WithAPIKey:

contentService, err := content.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:

config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)contentService, err := content.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

Seehttps://godoc.org/google.golang.org/api/option/ for details on options.

Index

Constants

View Source
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

typeAPIService

type APIService struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentOrderinvoices *OrderinvoicesServiceOrderpayments *OrderpaymentsServiceOrderreturns *OrderreturnsServiceOrders *OrdersService// contains filtered or unexported fields}

funcNewdeprecated

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.

funcNewServiceadded inv0.5.0

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

NewService creates a new APIService.

typeAmount

type Amount struct {// Pretax: [required] Value before taxes.Pretax *Price `json:"pretax,omitempty"`// Tax: [required] Tax value.Tax *Price `json:"tax,omitempty"`// ForceSendFields is a list of field names (e.g. "Pretax") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Pretax") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*Amount)MarshalJSON

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

typeCustomerReturnReason

type CustomerReturnReason struct {Descriptionstring `json:"description,omitempty"`ReasonCodestring `json:"reasonCode,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Description") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*CustomerReturnReason)MarshalJSON

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

typeError

type Error struct {// Domain: The domain of the error.Domainstring `json:"domain,omitempty"`// Message: A description of the error.Messagestring `json:"message,omitempty"`// Reason: The error code.Reasonstring `json:"reason,omitempty"`// ForceSendFields is a list of field names (e.g. "Domain") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Domain") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

Error: An error returned by the API.

func (*Error)MarshalJSON

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

typeErrors

type Errors struct {// Code: The HTTP status of the first error in errors.Codeint64 `json:"code,omitempty"`// Errors: A list of errors.Errors []*Error `json:"errors,omitempty"`// Message: The message of the first error in errors.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

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

func (*Errors)MarshalJSON

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

typeInvoiceSummary

type InvoiceSummary struct {// AdditionalChargeSummaries: Summary of the total amounts of the// additional charges.AdditionalChargeSummaries []*InvoiceSummaryAdditionalChargeSummary `json:"additionalChargeSummaries,omitempty"`// CustomerBalance: [required] Customer balance on this invoice. A// negative amount means the customer is paying, a positive one means// the customer is receiving money. Note: the sum of merchant_balance,// customer_balance and google_balance must always be zero.//// Furthermore the absolute value of this amount is expected to be equal// to the sum of product amount and additional charges, minus// promotions.CustomerBalance *Amount `json:"customerBalance,omitempty"`// GoogleBalance: [required] Google balance on this invoice. A negative// amount means Google is paying, a positive one means Google is// receiving money. Note: the sum of merchant_balance, customer_balance// and google_balance must always be zero.GoogleBalance *Amount `json:"googleBalance,omitempty"`// MerchantBalance: [required] Merchant balance on this invoice. A// negative amount means the merchant is paying, a positive one means// the merchant is receiving money. Note: the sum of merchant_balance,// customer_balance and google_balance must always be zero.MerchantBalance *Amount `json:"merchantBalance,omitempty"`// ProductTotal: [required] Total price for the product.ProductTotal *Amount `json:"productTotal,omitempty"`// PromotionSummaries: Summary for each promotion.PromotionSummaries []*Promotion `json:"promotionSummaries,omitempty"`// ForceSendFields is a list of field names (e.g.// "AdditionalChargeSummaries") to unconditionally include in API// requests. By default, fields with empty values are omitted from API// requests. However, any non-pointer, non-interface field appearing in// ForceSendFields will be sent to the server regardless of whether the// field is empty or not. This may be used to include empty fields in// Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g.// "AdditionalChargeSummaries") to include in API requests with the JSON// null value. By default, fields with empty values are omitted from API// requests. However, any field with an empty value appearing in// NullFields will be sent to the server as null. It is an error if a// field in this list has a non-empty value. This may be used to include// null fields in Patch requests.NullFields []string `json:"-"`}

func (*InvoiceSummary)MarshalJSON

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

typeInvoiceSummaryAdditionalChargeSummary

type InvoiceSummaryAdditionalChargeSummary struct {// TotalAmount: [required] Total additional charge for this type.TotalAmount *Amount `json:"totalAmount,omitempty"`// Type: [required] Type of the additional charge.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "TotalAmount") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "TotalAmount") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*InvoiceSummaryAdditionalChargeSummary)MarshalJSON

typeMerchantOrderReturn

type MerchantOrderReturn struct {CreationDatestring `json:"creationDate,omitempty"`MerchantOrderIdstring `json:"merchantOrderId,omitempty"`OrderIdstring `json:"orderId,omitempty"`OrderReturnIdstring `json:"orderReturnId,omitempty"`ReturnItems []*MerchantOrderReturnItem `json:"returnItems,omitempty"`ReturnShipments []*ReturnShipment `json:"returnShipments,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CreationDate") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreationDate") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*MerchantOrderReturn)MarshalJSON

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

typeMerchantOrderReturnItem

type MerchantOrderReturnItem struct {CustomerReturnReason *CustomerReturnReason `json:"customerReturnReason,omitempty"`ItemIdstring `json:"itemId,omitempty"`MerchantReturnReason *RefundReason `json:"merchantReturnReason,omitempty"`Product *OrderLineItemProduct `json:"product,omitempty"`ReturnShipmentIds []string `json:"returnShipmentIds,omitempty"`Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g.// "CustomerReturnReason") to unconditionally include in API requests.// By default, fields with empty values are omitted from API requests.// However, any non-pointer, non-interface field appearing in// ForceSendFields will be sent to the server regardless of whether the// field is empty or not. This may be used to include empty fields in// Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CustomerReturnReason") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*MerchantOrderReturnItem)MarshalJSON

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

typeOrder

type Order struct {// Acknowledged: Whether the order was acknowledged.Acknowledgedbool `json:"acknowledged,omitempty"`// ChannelType: The channel type of the order: "purchaseOnGoogle" or// "googleExpress".ChannelTypestring `json:"channelType,omitempty"`// Customer: The details of the customer who placed the order.Customer *OrderCustomer `json:"customer,omitempty"`// DeliveryDetails: The details for the delivery.DeliveryDetails *OrderDeliveryDetails `json:"deliveryDetails,omitempty"`// Id: The REST id of the order. Globally unique.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#order".Kindstring `json:"kind,omitempty"`// LineItems: Line items that are ordered.LineItems []*OrderLineItem `json:"lineItems,omitempty"`MerchantIduint64 `json:"merchantId,omitempty,string"`// MerchantOrderId: Merchant-provided id of the order.MerchantOrderIdstring `json:"merchantOrderId,omitempty"`// NetAmount: The net amount for the order. For example, if an order was// originally for a grand total of $100 and a refund was issued for $20,// the net amount will be $80.NetAmount *Price `json:"netAmount,omitempty"`// PaymentMethod: The details of the payment method.PaymentMethod *OrderPaymentMethod `json:"paymentMethod,omitempty"`// PaymentStatus: The status of the payment.PaymentStatusstring `json:"paymentStatus,omitempty"`// PlacedDate: The date when the order was placed, in ISO 8601 format.PlacedDatestring `json:"placedDate,omitempty"`// Promotions: Deprecated. The details of the merchant provided// promotions applied to the order. More details about the program are// here.Promotions []*OrderLegacyPromotion `json:"promotions,omitempty"`// Refunds: Refunds for the order.Refunds []*OrderRefund `json:"refunds,omitempty"`// Shipments: Shipments of the order.Shipments []*OrderShipment `json:"shipments,omitempty"`// ShippingCost: The total cost of shipping for all items.ShippingCost *Price `json:"shippingCost,omitempty"`// ShippingCostTax: The tax for the total shipping cost.ShippingCostTax *Price `json:"shippingCostTax,omitempty"`// ShippingOption: The requested shipping option.ShippingOptionstring `json:"shippingOption,omitempty"`// Status: The status of the order.Statusstring `json:"status,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Acknowledged") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Acknowledged") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*Order)MarshalJSON

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

typeOrderAddress

type OrderAddress struct {// Country: CLDR country code (e.g. "US").Countrystring `json:"country,omitempty"`// FullAddress: Strings representing the lines of the printed label for// mailing the order, for example:// John Smith// 1600 Amphitheatre Parkway// Mountain View, CA, 94043// United StatesFullAddress []string `json:"fullAddress,omitempty"`// IsPostOfficeBox: Whether the address is a post office box.IsPostOfficeBoxbool `json:"isPostOfficeBox,omitempty"`// Locality: City, town or commune. May also include dependent// localities or sublocalities (e.g. neighborhoods or suburbs).Localitystring `json:"locality,omitempty"`// PostalCode: Postal Code or ZIP (e.g. "94043").PostalCodestring `json:"postalCode,omitempty"`// RecipientName: Name of the recipient.RecipientNamestring `json:"recipientName,omitempty"`// Region: Top-level administrative subdivision of the country. For// example, a state like California ("CA") or a province like Quebec// ("QC").Regionstring `json:"region,omitempty"`// StreetAddress: Street-level part of the address.StreetAddress []string `json:"streetAddress,omitempty"`// ForceSendFields is a list of field names (e.g. "Country") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Country") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderAddress)MarshalJSON

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

typeOrderCancellation

type OrderCancellation struct {// Actor: The actor that created the cancellation.Actorstring `json:"actor,omitempty"`// CreationDate: Date on which the cancellation has been created, in ISO// 8601 format.CreationDatestring `json:"creationDate,omitempty"`// Quantity: The quantity that was canceled.Quantityint64 `json:"quantity,omitempty"`// Reason: The reason for the cancellation. Orders that are cancelled// with a noInventory reason will lead to the removal of the product// from Shopping Actions until you make an update to that product. This// will not affect your Shopping ads.Reasonstring `json:"reason,omitempty"`// ReasonText: The explanation of the reason.ReasonTextstring `json:"reasonText,omitempty"`// ForceSendFields is a list of field names (e.g. "Actor") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Actor") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderCancellation)MarshalJSON

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

typeOrderCustomer

type OrderCustomer struct {// Email: Deprecated.Emailstring `json:"email,omitempty"`// ExplicitMarketingPreference: Deprecated. Please use// marketingRightsInfo instead.ExplicitMarketingPreferencebool `json:"explicitMarketingPreference,omitempty"`// FullName: Full name of the customer.FullNamestring `json:"fullName,omitempty"`// MarketingRightsInfo: Customer's marketing preferences.MarketingRightsInfo *OrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,omitempty"`// ForceSendFields is a list of field names (e.g. "Email") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Email") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderCustomer)MarshalJSON

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

typeOrderCustomerMarketingRightsInfo

type OrderCustomerMarketingRightsInfo struct {// ExplicitMarketingPreference: Last known user selection regarding// marketing preferences. In certain cases this selection might not be// known, so this field would be empty.ExplicitMarketingPreferencestring `json:"explicitMarketingPreference,omitempty"`// LastUpdatedTimestamp: Timestamp when last time marketing preference// was updated. Could be empty, if user wasn't offered a selection yet.LastUpdatedTimestampstring `json:"lastUpdatedTimestamp,omitempty"`// MarketingEmailAddress: Email address that can be used for marketing// purposes. This field is only filled when explicitMarketingPreference// is equal to 'granted'.MarketingEmailAddressstring `json:"marketingEmailAddress,omitempty"`// ForceSendFields is a list of field names (e.g.// "ExplicitMarketingPreference") to unconditionally include in API// requests. By default, fields with empty values are omitted from API// requests. However, any non-pointer, non-interface field appearing in// ForceSendFields will be sent to the server regardless of whether the// field is empty or not. This may be used to include empty fields in// Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g.// "ExplicitMarketingPreference") to include in API requests with the// JSON null value. By default, fields with empty values are omitted// from API requests. However, any field with an empty value appearing// in NullFields will be sent to the server as null. It is an error if a// field in this list has a non-empty value. This may be used to include// null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderCustomerMarketingRightsInfo)MarshalJSON

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

typeOrderDeliveryDetails

type OrderDeliveryDetails struct {// Address: The delivery addressAddress *OrderAddress `json:"address,omitempty"`// PhoneNumber: The phone number of the person receiving the delivery.PhoneNumberstring `json:"phoneNumber,omitempty"`// ForceSendFields is a list of field names (e.g. "Address") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Address") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderDeliveryDetails)MarshalJSON

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

typeOrderLegacyPromotion

type OrderLegacyPromotion struct {Benefits []*OrderLegacyPromotionBenefit `json:"benefits,omitempty"`// EffectiveDates: The date and time frame when the promotion is active// and ready for validation review. Note that the promotion live time// may be delayed for a few hours due to the validation review.// Start date and end date are separated by a forward slash (/). The// start date is specified by the format (YYYY-MM-DD), followed by the// letter ?T?, the time of the day when the sale starts (in Greenwich// Mean Time, GMT), followed by an expression of the time zone for the// sale. The end date is in the same format.EffectiveDatesstring `json:"effectiveDates,omitempty"`// GenericRedemptionCode: Optional. The text code that corresponds to// the promotion when applied on the retailer?s website.GenericRedemptionCodestring `json:"genericRedemptionCode,omitempty"`// Id: The unique ID of the promotion.Idstring `json:"id,omitempty"`// LongTitle: The full title of the promotion.LongTitlestring `json:"longTitle,omitempty"`// ProductApplicability: Whether the promotion is applicable to all// products or only specific products.ProductApplicabilitystring `json:"productApplicability,omitempty"`// RedemptionChannel: Indicates that the promotion is valid online.RedemptionChannelstring `json:"redemptionChannel,omitempty"`// ForceSendFields is a list of field names (e.g. "Benefits") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Benefits") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderLegacyPromotion)MarshalJSON

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

typeOrderLegacyPromotionBenefit

type OrderLegacyPromotionBenefit struct {// Discount: The discount in the order price when the promotion is// applied.Discount *Price `json:"discount,omitempty"`// OfferIds: The OfferId(s) that were purchased in this order and map to// this specific benefit of the promotion.OfferIds []string `json:"offerIds,omitempty"`// SubType: Further describes the benefit of the promotion. Note that we// will expand on this enumeration as we support new promotion// sub-types.SubTypestring `json:"subType,omitempty"`// TaxImpact: The impact on tax when the promotion is applied.TaxImpact *Price `json:"taxImpact,omitempty"`// Type: Describes whether the promotion applies to products (e.g. 20%// off) or to shipping (e.g. Free Shipping).Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Discount") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Discount") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderLegacyPromotionBenefit)MarshalJSON

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

typeOrderLineItem

type OrderLineItem struct {// Annotations: Annotations that are attached to the line item.Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"`// Cancellations: Cancellations of the line item.Cancellations []*OrderCancellation `json:"cancellations,omitempty"`// Id: The id of the line item.Idstring `json:"id,omitempty"`// Price: Total price for the line item. For example, if two items for// $10 are purchased, the total price will be $20.Price *Price `json:"price,omitempty"`// Product: Product data from the time of the order placement.Product *OrderLineItemProduct `json:"product,omitempty"`// QuantityCanceled: Number of items canceled.QuantityCanceledint64 `json:"quantityCanceled,omitempty"`// QuantityDelivered: Number of items delivered.QuantityDeliveredint64 `json:"quantityDelivered,omitempty"`// QuantityOrdered: Number of items ordered.QuantityOrderedint64 `json:"quantityOrdered,omitempty"`// QuantityPending: Number of items pending.QuantityPendingint64 `json:"quantityPending,omitempty"`// QuantityReturned: Number of items returned.QuantityReturnedint64 `json:"quantityReturned,omitempty"`// QuantityShipped: Number of items shipped.QuantityShippedint64 `json:"quantityShipped,omitempty"`// ReturnInfo: Details of the return policy for the line item.ReturnInfo *OrderLineItemReturnInfo `json:"returnInfo,omitempty"`// Returns: Returns of the line item.Returns []*OrderReturn `json:"returns,omitempty"`// ShippingDetails: Details of the requested shipping for the line item.ShippingDetails *OrderLineItemShippingDetails `json:"shippingDetails,omitempty"`// Tax: Total tax amount for the line item. For example, if two items// are purchased, and each have a cost tax of $2, the total tax amount// will be $4.Tax *Price `json:"tax,omitempty"`// ForceSendFields is a list of field names (e.g. "Annotations") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Annotations") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderLineItem)MarshalJSON

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

typeOrderLineItemProduct

type OrderLineItemProduct struct {// Brand: Brand of the item.Brandstring `json:"brand,omitempty"`// Channel: The item's channel (online or local).Channelstring `json:"channel,omitempty"`// Condition: Condition or state of the item.Conditionstring `json:"condition,omitempty"`// ContentLanguage: The two-letter ISO 639-1 language code for the item.ContentLanguagestring `json:"contentLanguage,omitempty"`// Gtin: Global Trade Item Number (GTIN) of the item.Gtinstring `json:"gtin,omitempty"`// Id: The REST id of the product.Idstring `json:"id,omitempty"`// ImageLink: URL of an image of the item.ImageLinkstring `json:"imageLink,omitempty"`// ItemGroupId: Shared identifier for all variants of the same product.ItemGroupIdstring `json:"itemGroupId,omitempty"`// Mpn: Manufacturer Part Number (MPN) of the item.Mpnstring `json:"mpn,omitempty"`// OfferId: An identifier of the item.OfferIdstring `json:"offerId,omitempty"`// Price: Price of the item.Price *Price `json:"price,omitempty"`// ShownImage: URL to the cached image shown to the user when order was// placed.ShownImagestring `json:"shownImage,omitempty"`// TargetCountry: The CLDR territory code of the target country of the// product.TargetCountrystring `json:"targetCountry,omitempty"`// Title: The title of the product.Titlestring `json:"title,omitempty"`// VariantAttributes: Variant attributes for the item. These are// dimensions of the product, such as color, gender, material, pattern,// and size. You can find a comprehensive list of variant attributes// here.VariantAttributes []*OrderLineItemProductVariantAttribute `json:"variantAttributes,omitempty"`// ForceSendFields is a list of field names (e.g. "Brand") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Brand") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderLineItemProduct)MarshalJSON

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

typeOrderLineItemProductVariantAttribute

type OrderLineItemProductVariantAttribute struct {// Dimension: The dimension of the variant.Dimensionstring `json:"dimension,omitempty"`// Value: The value for the dimension.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Dimension") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Dimension") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderLineItemProductVariantAttribute)MarshalJSON

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

typeOrderLineItemReturnInfo

type OrderLineItemReturnInfo struct {// DaysToReturn: How many days later the item can be returned.DaysToReturnint64 `json:"daysToReturn,omitempty"`// IsReturnable: Whether the item is returnable.IsReturnablebool `json:"isReturnable,omitempty"`// PolicyUrl: URL of the item return policy.PolicyUrlstring `json:"policyUrl,omitempty"`// ForceSendFields is a list of field names (e.g. "DaysToReturn") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DaysToReturn") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderLineItemReturnInfo)MarshalJSON

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

typeOrderLineItemShippingDetails

type OrderLineItemShippingDetails struct {// DeliverByDate: The delivery by date, in ISO 8601 format.DeliverByDatestring `json:"deliverByDate,omitempty"`// Method: Details of the shipping method.Method *OrderLineItemShippingDetailsMethod `json:"method,omitempty"`// ShipByDate: The ship by date, in ISO 8601 format.ShipByDatestring `json:"shipByDate,omitempty"`// ForceSendFields is a list of field names (e.g. "DeliverByDate") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DeliverByDate") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderLineItemShippingDetails)MarshalJSON

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

typeOrderLineItemShippingDetailsMethod

type OrderLineItemShippingDetailsMethod struct {// Carrier: The carrier for the shipping. Optional. See// shipments[].carrier for a list of acceptable values.Carrierstring `json:"carrier,omitempty"`// MaxDaysInTransit: Maximum transit time.MaxDaysInTransitint64 `json:"maxDaysInTransit,omitempty"`// MethodName: The name of the shipping method.MethodNamestring `json:"methodName,omitempty"`// MinDaysInTransit: Minimum transit time.MinDaysInTransitint64 `json:"minDaysInTransit,omitempty"`// ForceSendFields is a list of field names (e.g. "Carrier") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Carrier") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderLineItemShippingDetailsMethod)MarshalJSON

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

typeOrderMerchantProvidedAnnotation

type OrderMerchantProvidedAnnotation struct {// Key: Key for additional merchant provided (as key-value pairs)// annotation about the line item.Keystring `json:"key,omitempty"`// Value: Value for additional merchant provided (as key-value pairs)// annotation about the line item.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Key") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Key") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderMerchantProvidedAnnotation)MarshalJSON

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

typeOrderPaymentMethod

type OrderPaymentMethod struct {// BillingAddress: The billing address.BillingAddress *OrderAddress `json:"billingAddress,omitempty"`// ExpirationMonth: The card expiration month (January = 1, February = 2// etc.).ExpirationMonthint64 `json:"expirationMonth,omitempty"`// ExpirationYear: The card expiration year (4-digit, e.g. 2015).ExpirationYearint64 `json:"expirationYear,omitempty"`// LastFourDigits: The last four digits of the card number.LastFourDigitsstring `json:"lastFourDigits,omitempty"`// PhoneNumber: The billing phone number.PhoneNumberstring `json:"phoneNumber,omitempty"`// Type: The type of instrument.//// Acceptable values are:// - "AMEX"// - "DISCOVER"// - "JCB"// - "MASTERCARD"// - "UNIONPAY"// - "VISA"// - ""Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "BillingAddress") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BillingAddress") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrderPaymentMethod)MarshalJSON

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

typeOrderRefund

type OrderRefund struct {// Actor: The actor that created the refund.Actorstring `json:"actor,omitempty"`// Amount: The amount that is refunded.Amount *Price `json:"amount,omitempty"`// CreationDate: Date on which the item has been created, in ISO 8601// format.CreationDatestring `json:"creationDate,omitempty"`// Reason: The reason for the refund.Reasonstring `json:"reason,omitempty"`// ReasonText: The explanation of the reason.ReasonTextstring `json:"reasonText,omitempty"`// ForceSendFields is a list of field names (e.g. "Actor") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Actor") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderRefund)MarshalJSON

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

typeOrderReturn

type OrderReturn struct {// Actor: The actor that created the refund.Actorstring `json:"actor,omitempty"`// CreationDate: Date on which the item has been created, in ISO 8601// format.CreationDatestring `json:"creationDate,omitempty"`// Quantity: Quantity that is returned.Quantityint64 `json:"quantity,omitempty"`// Reason: The reason for the return.Reasonstring `json:"reason,omitempty"`// ReasonText: The explanation of the reason.ReasonTextstring `json:"reasonText,omitempty"`// ForceSendFields is a list of field names (e.g. "Actor") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Actor") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderReturn)MarshalJSON

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

typeOrderShipment

type OrderShipment struct {// Carrier: The carrier handling the shipment.//// Acceptable values are:// - "gsx"// - "ups"// - "usps"// - "fedex"// - "dhl"// - "ecourier"// - "cxt"// - "google"// - "ontrac"// - "emsy"// - "ont"// - "deliv"// - "dynamex"// - "lasership"// - "mpx"// - "uds"Carrierstring `json:"carrier,omitempty"`// CreationDate: Date on which the shipment has been created, in ISO// 8601 format.CreationDatestring `json:"creationDate,omitempty"`// DeliveryDate: Date on which the shipment has been delivered, in ISO// 8601 format. Present only if status is deliveredDeliveryDatestring `json:"deliveryDate,omitempty"`// Id: The id of the shipment.Idstring `json:"id,omitempty"`// LineItems: The line items that are shipped.LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"`// Status: The status of the shipment.Statusstring `json:"status,omitempty"`// TrackingId: The tracking id for the shipment.TrackingIdstring `json:"trackingId,omitempty"`// ForceSendFields is a list of field names (e.g. "Carrier") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Carrier") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderShipment)MarshalJSON

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

typeOrderShipmentLineItemShipment

type OrderShipmentLineItemShipment struct {// LineItemId: The id of the line item that is shipped. Either// lineItemId or productId is required.LineItemIdstring `json:"lineItemId,omitempty"`// ProductId: The ID of the product to ship. This is the REST ID used in// the products service. Either lineItemId or productId is required.ProductIdstring `json:"productId,omitempty"`// Quantity: The quantity that is shipped.Quantityint64 `json:"quantity,omitempty"`// ForceSendFields is a list of field names (e.g. "LineItemId") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LineItemId") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderShipmentLineItemShipment)MarshalJSON

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

typeOrderinvoicesCreateChargeInvoiceRequest

type OrderinvoicesCreateChargeInvoiceRequest struct {// InvoiceId: [required] The ID of the invoice.InvoiceIdstring `json:"invoiceId,omitempty"`// InvoiceSummary: [required] Invoice summary.InvoiceSummary *InvoiceSummary `json:"invoiceSummary,omitempty"`// LineItemInvoices: [required] Invoice details per line item.LineItemInvoices []*ShipmentInvoiceLineItemInvoice `json:"lineItemInvoices,omitempty"`// OperationId: [required] The ID of the operation, unique across all// operations for a given order.OperationIdstring `json:"operationId,omitempty"`// ShipmentGroupId: [required] ID of the shipment group.ShipmentGroupIdstring `json:"shipmentGroupId,omitempty"`// ForceSendFields is a list of field names (e.g. "InvoiceId") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "InvoiceId") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderinvoicesCreateChargeInvoiceRequest)MarshalJSON

typeOrderinvoicesCreateChargeInvoiceResponse

type OrderinvoicesCreateChargeInvoiceResponse struct {// ExecutionStatus: The status of the execution.ExecutionStatusstring `json:"executionStatus,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#orderinvoicesCreateChargeInvoiceResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExecutionStatus") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrderinvoicesCreateChargeInvoiceResponse)MarshalJSON

typeOrderinvoicesCreateRefundInvoiceRequest

type OrderinvoicesCreateRefundInvoiceRequest struct {// InvoiceId: [required] The ID of the invoice.InvoiceIdstring `json:"invoiceId,omitempty"`// OperationId: [required] The ID of the operation, unique across all// operations for a given order.OperationIdstring `json:"operationId,omitempty"`// RefundOnlyOption: Option to create a refund-only invoice. Exactly one// of refundOnlyOption or returnOption must be provided.RefundOnlyOption *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption `json:"refundOnlyOption,omitempty"`// ReturnOption: Option to create an invoice for a refund and mark all// items within the invoice as returned. Exactly one of refundOnlyOption// or returnOption must be provided.ReturnOption *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption `json:"returnOption,omitempty"`// ShipmentInvoices: Invoice details for different shipment groups.ShipmentInvoices []*ShipmentInvoice `json:"shipmentInvoices,omitempty"`// ForceSendFields is a list of field names (e.g. "InvoiceId") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "InvoiceId") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderinvoicesCreateRefundInvoiceRequest)MarshalJSON

typeOrderinvoicesCreateRefundInvoiceResponse

type OrderinvoicesCreateRefundInvoiceResponse struct {// ExecutionStatus: The status of the execution.ExecutionStatusstring `json:"executionStatus,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#orderinvoicesCreateRefundInvoiceResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExecutionStatus") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrderinvoicesCreateRefundInvoiceResponse)MarshalJSON

typeOrderinvoicesCreatechargeinvoiceCall

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

func (*OrderinvoicesCreatechargeinvoiceCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrderinvoicesCreatechargeinvoiceCall)Do

Do executes the "content.orderinvoices.createchargeinvoice" call.Exactly one of *OrderinvoicesCreateChargeInvoiceResponse or errorwill be non-nil. Any non-2xx status code is an error. Responseheaders are in either*OrderinvoicesCreateChargeInvoiceResponse.ServerResponse.Header or(if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.

func (*OrderinvoicesCreatechargeinvoiceCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrderinvoicesCreatechargeinvoiceCall)Header

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

typeOrderinvoicesCreaterefundinvoiceCall

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

func (*OrderinvoicesCreaterefundinvoiceCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrderinvoicesCreaterefundinvoiceCall)Do

Do executes the "content.orderinvoices.createrefundinvoice" call.Exactly one of *OrderinvoicesCreateRefundInvoiceResponse or errorwill be non-nil. Any non-2xx status code is an error. Responseheaders are in either*OrderinvoicesCreateRefundInvoiceResponse.ServerResponse.Header or(if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.

func (*OrderinvoicesCreaterefundinvoiceCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrderinvoicesCreaterefundinvoiceCall)Header

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

typeOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption

type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption struct {// Description: Optional description of the refund reason.Descriptionstring `json:"description,omitempty"`// Reason: [required] Reason for the refund.Reasonstring `json:"reason,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Description") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption)MarshalJSON

typeOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption

type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption struct {// Description: Optional description of the return reason.Descriptionstring `json:"description,omitempty"`// Reason: [required] Reason for the return.Reasonstring `json:"reason,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Description") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption)MarshalJSON

typeOrderinvoicesService

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

funcNewOrderinvoicesService

func NewOrderinvoicesService(s *APIService) *OrderinvoicesService

func (*OrderinvoicesService)Createchargeinvoice

func (r *OrderinvoicesService) Createchargeinvoice(merchantIduint64, orderIdstring, orderinvoicescreatechargeinvoicerequest *OrderinvoicesCreateChargeInvoiceRequest) *OrderinvoicesCreatechargeinvoiceCall

Createchargeinvoice: Creates a charge invoice for a shipment group,and triggers a charge capture for non-facilitated payment orders.

func (*OrderinvoicesService)Createrefundinvoice

func (r *OrderinvoicesService) Createrefundinvoice(merchantIduint64, orderIdstring, orderinvoicescreaterefundinvoicerequest *OrderinvoicesCreateRefundInvoiceRequest) *OrderinvoicesCreaterefundinvoiceCall

Createrefundinvoice: Creates a refund invoice for one or moreshipment groups, and triggers a refund for non-facilitated paymentorders. This can only be used for line items that have previouslybeen charged using createChargeInvoice. All amounts (except for thesummary) are incremental with respect to the previous invoice.

typeOrderpaymentsNotifyAuthApprovedRequest

type OrderpaymentsNotifyAuthApprovedRequest struct {AuthAmountPretax *Price `json:"authAmountPretax,omitempty"`AuthAmountTax *Price `json:"authAmountTax,omitempty"`// ForceSendFields is a list of field names (e.g. "AuthAmountPretax") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AuthAmountPretax") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrderpaymentsNotifyAuthApprovedRequest)MarshalJSON

typeOrderpaymentsNotifyAuthApprovedResponse

type OrderpaymentsNotifyAuthApprovedResponse struct {// ExecutionStatus: The status of the execution.ExecutionStatusstring `json:"executionStatus,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#orderpaymentsNotifyAuthApprovedResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExecutionStatus") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrderpaymentsNotifyAuthApprovedResponse)MarshalJSON

typeOrderpaymentsNotifyAuthDeclinedRequest

type OrderpaymentsNotifyAuthDeclinedRequest struct {// DeclineReason: Reason why payment authorization was declined.DeclineReasonstring `json:"declineReason,omitempty"`// ForceSendFields is a list of field names (e.g. "DeclineReason") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DeclineReason") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderpaymentsNotifyAuthDeclinedRequest)MarshalJSON

typeOrderpaymentsNotifyAuthDeclinedResponse

type OrderpaymentsNotifyAuthDeclinedResponse struct {// ExecutionStatus: The status of the execution.ExecutionStatusstring `json:"executionStatus,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#orderpaymentsNotifyAuthDeclinedResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExecutionStatus") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrderpaymentsNotifyAuthDeclinedResponse)MarshalJSON

typeOrderpaymentsNotifyChargeRequest

type OrderpaymentsNotifyChargeRequest struct {// ChargeState: Whether charge was successful.ChargeStatestring `json:"chargeState,omitempty"`// InvoiceId: Deprecated. Please use invoiceIds instead.InvoiceIdstring `json:"invoiceId,omitempty"`// InvoiceIds: Invoice IDs from the orderinvoices service that// correspond to the charge.InvoiceIds []string `json:"invoiceIds,omitempty"`// ForceSendFields is a list of field names (e.g. "ChargeState") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ChargeState") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderpaymentsNotifyChargeRequest)MarshalJSON

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

typeOrderpaymentsNotifyChargeResponse

type OrderpaymentsNotifyChargeResponse struct {// ExecutionStatus: The status of the execution.ExecutionStatusstring `json:"executionStatus,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#orderpaymentsNotifyChargeResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExecutionStatus") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrderpaymentsNotifyChargeResponse)MarshalJSON

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

typeOrderpaymentsNotifyRefundRequest

type OrderpaymentsNotifyRefundRequest struct {// InvoiceId: Deprecated. Please use invoiceIds instead.InvoiceIdstring `json:"invoiceId,omitempty"`// InvoiceIds: Invoice IDs from the orderinvoices service that// correspond to the refund.InvoiceIds []string `json:"invoiceIds,omitempty"`// RefundState: Whether refund was successful.RefundStatestring `json:"refundState,omitempty"`// ForceSendFields is a list of field names (e.g. "InvoiceId") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "InvoiceId") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderpaymentsNotifyRefundRequest)MarshalJSON

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

typeOrderpaymentsNotifyRefundResponse

type OrderpaymentsNotifyRefundResponse struct {// ExecutionStatus: The status of the execution.ExecutionStatusstring `json:"executionStatus,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#orderpaymentsNotifyRefundResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExecutionStatus") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrderpaymentsNotifyRefundResponse)MarshalJSON

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

typeOrderpaymentsNotifyauthapprovedCall

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

func (*OrderpaymentsNotifyauthapprovedCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrderpaymentsNotifyauthapprovedCall)Do

Do executes the "content.orderpayments.notifyauthapproved" call.Exactly one of *OrderpaymentsNotifyAuthApprovedResponse or error willbe non-nil. Any non-2xx status code is an error. Response headers arein either*OrderpaymentsNotifyAuthApprovedResponse.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.

func (*OrderpaymentsNotifyauthapprovedCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrderpaymentsNotifyauthapprovedCall)Header

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

typeOrderpaymentsNotifyauthdeclinedCall

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

func (*OrderpaymentsNotifyauthdeclinedCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrderpaymentsNotifyauthdeclinedCall)Do

Do executes the "content.orderpayments.notifyauthdeclined" call.Exactly one of *OrderpaymentsNotifyAuthDeclinedResponse or error willbe non-nil. Any non-2xx status code is an error. Response headers arein either*OrderpaymentsNotifyAuthDeclinedResponse.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.

func (*OrderpaymentsNotifyauthdeclinedCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrderpaymentsNotifyauthdeclinedCall)Header

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

typeOrderpaymentsNotifychargeCall

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

func (*OrderpaymentsNotifychargeCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrderpaymentsNotifychargeCall)Do

Do executes the "content.orderpayments.notifycharge" call.Exactly one of *OrderpaymentsNotifyChargeResponse or error will benon-nil. Any non-2xx status code is an error. Response headers are ineither *OrderpaymentsNotifyChargeResponse.ServerResponse.Header or(if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.

func (*OrderpaymentsNotifychargeCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrderpaymentsNotifychargeCall)Header

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

typeOrderpaymentsNotifyrefundCall

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

func (*OrderpaymentsNotifyrefundCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrderpaymentsNotifyrefundCall)Do

Do executes the "content.orderpayments.notifyrefund" call.Exactly one of *OrderpaymentsNotifyRefundResponse or error will benon-nil. Any non-2xx status code is an error. Response headers are ineither *OrderpaymentsNotifyRefundResponse.ServerResponse.Header or(if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.

func (*OrderpaymentsNotifyrefundCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrderpaymentsNotifyrefundCall)Header

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

typeOrderpaymentsService

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

funcNewOrderpaymentsService

func NewOrderpaymentsService(s *APIService) *OrderpaymentsService

func (*OrderpaymentsService)Notifyauthapproved

func (r *OrderpaymentsService) Notifyauthapproved(merchantIduint64, orderIdstring, orderpaymentsnotifyauthapprovedrequest *OrderpaymentsNotifyAuthApprovedRequest) *OrderpaymentsNotifyauthapprovedCall

Notifyauthapproved: Notify about successfully authorizing user'spayment method for a given amount.

func (*OrderpaymentsService)Notifyauthdeclined

func (r *OrderpaymentsService) Notifyauthdeclined(merchantIduint64, orderIdstring, orderpaymentsnotifyauthdeclinedrequest *OrderpaymentsNotifyAuthDeclinedRequest) *OrderpaymentsNotifyauthdeclinedCall

Notifyauthdeclined: Notify about failure to authorize user's paymentmethod.

func (*OrderpaymentsService)Notifycharge

func (r *OrderpaymentsService) Notifycharge(merchantIduint64, orderIdstring, orderpaymentsnotifychargerequest *OrderpaymentsNotifyChargeRequest) *OrderpaymentsNotifychargeCall

Notifycharge: Notify about charge on user's selected payments method.

func (*OrderpaymentsService)Notifyrefund

func (r *OrderpaymentsService) Notifyrefund(merchantIduint64, orderIdstring, orderpaymentsnotifyrefundrequest *OrderpaymentsNotifyRefundRequest) *OrderpaymentsNotifyrefundCall

Notifyrefund: Notify about refund on user's selected payments method.

typeOrderreturnsGetCall

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

func (*OrderreturnsGetCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrderreturnsGetCall)Do

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

func (*OrderreturnsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrderreturnsGetCall)Header

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

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

func (*OrderreturnsGetCall)IfNoneMatch

func (c *OrderreturnsGetCall) IfNoneMatch(entityTagstring) *OrderreturnsGetCall

IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.

typeOrderreturnsListCall

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

func (*OrderreturnsListCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrderreturnsListCall)CreatedEndDate

func (c *OrderreturnsListCall) CreatedEndDate(createdEndDatestring) *OrderreturnsListCall

CreatedEndDate sets the optional parameter "createdEndDate": Obtainsorder returns created before this date (inclusively), in ISO 8601format.

func (*OrderreturnsListCall)CreatedStartDate

func (c *OrderreturnsListCall) CreatedStartDate(createdStartDatestring) *OrderreturnsListCall

CreatedStartDate sets the optional parameter "createdStartDate":Obtains order returns created after this date (inclusively), in ISO8601 format.

func (*OrderreturnsListCall)Do

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

func (*OrderreturnsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrderreturnsListCall)Header

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

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

func (*OrderreturnsListCall)IfNoneMatch

func (c *OrderreturnsListCall) IfNoneMatch(entityTagstring) *OrderreturnsListCall

IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.

func (*OrderreturnsListCall)MaxResults

func (c *OrderreturnsListCall) MaxResults(maxResultsint64) *OrderreturnsListCall

MaxResults sets the optional parameter "maxResults": The maximumnumber of order returns to return in the response, used for paging.The default value is 25 returns per page, and the maximum allowedvalue is 250 returns per page.

func (*OrderreturnsListCall)OrderBy

OrderBy sets the optional parameter "orderBy": Return the results inthe specified order.

Possible values:

"returnCreationTimeAsc""returnCreationTimeDesc"

func (*OrderreturnsListCall)PageToken

func (c *OrderreturnsListCall) PageToken(pageTokenstring) *OrderreturnsListCall

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

func (*OrderreturnsListCall)Pages

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.

typeOrderreturnsListResponse

type OrderreturnsListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#orderreturnsListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: The token for the retrieval of the next page of// returns.NextPageTokenstring `json:"nextPageToken,omitempty"`Resources []*MerchantOrderReturn `json:"resources,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrderreturnsListResponse)MarshalJSON

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

typeOrderreturnsService

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

funcNewOrderreturnsService

func NewOrderreturnsService(s *APIService) *OrderreturnsService

func (*OrderreturnsService)Get

func (r *OrderreturnsService) Get(merchantIduint64, returnIdstring) *OrderreturnsGetCall

Get: Retrieves an order return from your Merchant Center account.

func (*OrderreturnsService)List

List: Lists order returns in your Merchant Center account.

typeOrdersAcknowledgeCall

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

func (*OrdersAcknowledgeCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersAcknowledgeCall)Do

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

func (*OrdersAcknowledgeCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersAcknowledgeCall)Header

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

typeOrdersAcknowledgeRequest

type OrdersAcknowledgeRequest struct {// OperationId: The ID of the operation. Unique across all operations// for a given order.OperationIdstring `json:"operationId,omitempty"`// ForceSendFields is a list of field names (e.g. "OperationId") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "OperationId") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersAcknowledgeRequest)MarshalJSON

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

typeOrdersAcknowledgeResponse

type OrdersAcknowledgeResponse struct {// ExecutionStatus: The status of the execution.ExecutionStatusstring `json:"executionStatus,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersAcknowledgeResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExecutionStatus") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrdersAcknowledgeResponse)MarshalJSON

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

typeOrdersAdvanceTestOrderResponse

type OrdersAdvanceTestOrderResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersAdvanceTestOrderResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersAdvanceTestOrderResponse)MarshalJSON

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

typeOrdersAdvancetestorderCall

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

func (*OrdersAdvancetestorderCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersAdvancetestorderCall)Do

Do executes the "content.orders.advancetestorder" call.Exactly one of *OrdersAdvanceTestOrderResponse or error will benon-nil. Any non-2xx status code is an error. Response headers are ineither *OrdersAdvanceTestOrderResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.

func (*OrdersAdvancetestorderCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersAdvancetestorderCall)Header

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

typeOrdersCancelCall

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

func (*OrdersCancelCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersCancelCall)Do

Do executes the "content.orders.cancel" call.Exactly one of *OrdersCancelResponse or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*OrdersCancelResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.

func (*OrdersCancelCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersCancelCall)Header

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

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

typeOrdersCancelLineItemRequest

type OrdersCancelLineItemRequest struct {// Amount: Deprecated. Please use amountPretax and amountTax instead.Amount *Price `json:"amount,omitempty"`// AmountPretax: Amount to refund for the cancelation. Optional. If not// set, Google will calculate the default based on the price and tax of// the items involved. The amount must not be larger than the net amount// left on the order.AmountPretax *Price `json:"amountPretax,omitempty"`// AmountTax: Tax amount that correspond to cancellation amount in// amountPretax.AmountTax *Price `json:"amountTax,omitempty"`// LineItemId: The ID of the line item to cancel. Either lineItemId or// productId is required.LineItemIdstring `json:"lineItemId,omitempty"`// OperationId: The ID of the operation. Unique across all operations// for a given order.OperationIdstring `json:"operationId,omitempty"`// ProductId: The ID of the product to cancel. This is the REST ID used// in the products service. Either lineItemId or productId is required.ProductIdstring `json:"productId,omitempty"`// Quantity: The quantity to cancel.Quantityint64 `json:"quantity,omitempty"`// Reason: The reason for the cancellation.Reasonstring `json:"reason,omitempty"`// ReasonText: The explanation of the reason.ReasonTextstring `json:"reasonText,omitempty"`// ForceSendFields is a list of field names (e.g. "Amount") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Amount") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCancelLineItemRequest)MarshalJSON

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

typeOrdersCancelLineItemResponse

type OrdersCancelLineItemResponse struct {// ExecutionStatus: The status of the execution.ExecutionStatusstring `json:"executionStatus,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersCancelLineItemResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExecutionStatus") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrdersCancelLineItemResponse)MarshalJSON

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

typeOrdersCancelRequest

type OrdersCancelRequest struct {// OperationId: The ID of the operation. Unique across all operations// for a given order.OperationIdstring `json:"operationId,omitempty"`// Reason: The reason for the cancellation.Reasonstring `json:"reason,omitempty"`// ReasonText: The explanation of the reason.ReasonTextstring `json:"reasonText,omitempty"`// ForceSendFields is a list of field names (e.g. "OperationId") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "OperationId") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCancelRequest)MarshalJSON

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

typeOrdersCancelResponse

type OrdersCancelResponse struct {// ExecutionStatus: The status of the execution.ExecutionStatusstring `json:"executionStatus,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersCancelResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExecutionStatus") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrdersCancelResponse)MarshalJSON

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

typeOrdersCancelTestOrderByCustomerRequest

type OrdersCancelTestOrderByCustomerRequest struct {// Reason: The reason for the cancellation.Reasonstring `json:"reason,omitempty"`// ForceSendFields is a list of field names (e.g. "Reason") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Reason") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCancelTestOrderByCustomerRequest)MarshalJSON

typeOrdersCancelTestOrderByCustomerResponse

type OrdersCancelTestOrderByCustomerResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersCancelTestOrderByCustomerResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCancelTestOrderByCustomerResponse)MarshalJSON

typeOrdersCancellineitemCall

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

func (*OrdersCancellineitemCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersCancellineitemCall)Do

Do executes the "content.orders.cancellineitem" call.Exactly one of *OrdersCancelLineItemResponse or error will benon-nil. Any non-2xx status code is an error. Response headers are ineither *OrdersCancelLineItemResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.

func (*OrdersCancellineitemCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersCancellineitemCall)Header

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

typeOrdersCanceltestorderbycustomerCall

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

func (*OrdersCanceltestorderbycustomerCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersCanceltestorderbycustomerCall)Do

Do executes the "content.orders.canceltestorderbycustomer" call.Exactly one of *OrdersCancelTestOrderByCustomerResponse or error willbe non-nil. Any non-2xx status code is an error. Response headers arein either*OrdersCancelTestOrderByCustomerResponse.ServerResponse.Header or (ifa response was returned at all) in error.(*googleapi.Error).Header.Use googleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.

func (*OrdersCanceltestorderbycustomerCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersCanceltestorderbycustomerCall)Header

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

typeOrdersCreateTestOrderRequest

type OrdersCreateTestOrderRequest struct {// Country: The  CLDR territory code of the country of the test order to// create. Affects the currency and addresses of orders created via// template_name, or the addresses of orders created via// test_order.//// Acceptable values are:// - "US"// - "FR"  Defaults to US.Countrystring `json:"country,omitempty"`// TemplateName: The test order template to use. Specify as an// alternative to testOrder as a shortcut for retrieving a template and// then creating an order using that template.TemplateNamestring `json:"templateName,omitempty"`// TestOrder: The test order to create.TestOrder *TestOrder `json:"testOrder,omitempty"`// ForceSendFields is a list of field names (e.g. "Country") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Country") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCreateTestOrderRequest)MarshalJSON

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

typeOrdersCreateTestOrderResponse

type OrdersCreateTestOrderResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersCreateTestOrderResponse".Kindstring `json:"kind,omitempty"`// OrderId: The ID of the newly created test order.OrderIdstring `json:"orderId,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCreateTestOrderResponse)MarshalJSON

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

typeOrdersCreateTestReturnRequest

type OrdersCreateTestReturnRequest struct {// Items: Returned items.Items []*OrdersCustomBatchRequestEntryCreateTestReturnReturnItem `json:"items,omitempty"`// ForceSendFields is a list of field names (e.g. "Items") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Items") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCreateTestReturnRequest)MarshalJSON

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

typeOrdersCreateTestReturnResponse

type OrdersCreateTestReturnResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersCreateTestReturnResponse".Kindstring `json:"kind,omitempty"`// ReturnId: The ID of the newly created test order return.ReturnIdstring `json:"returnId,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCreateTestReturnResponse)MarshalJSON

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

typeOrdersCreatetestorderCall

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

func (*OrdersCreatetestorderCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersCreatetestorderCall)Do

Do executes the "content.orders.createtestorder" call.Exactly one of *OrdersCreateTestOrderResponse or error will benon-nil. Any non-2xx status code is an error. Response headers are ineither *OrdersCreateTestOrderResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.

func (*OrdersCreatetestorderCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersCreatetestorderCall)Header

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

typeOrdersCreatetestreturnCall

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

func (*OrdersCreatetestreturnCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersCreatetestreturnCall)Do

Do executes the "content.orders.createtestreturn" call.Exactly one of *OrdersCreateTestReturnResponse or error will benon-nil. Any non-2xx status code is an error. Response headers are ineither *OrdersCreateTestReturnResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.

func (*OrdersCreatetestreturnCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersCreatetestreturnCall)Header

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

typeOrdersCustomBatchRequest

type OrdersCustomBatchRequest struct {// Entries: The request entries to be processed in the batch.Entries []*OrdersCustomBatchRequestEntry `json:"entries,omitempty"`// ForceSendFields is a list of field names (e.g. "Entries") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Entries") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCustomBatchRequest)MarshalJSON

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

typeOrdersCustomBatchRequestEntry

type OrdersCustomBatchRequestEntry struct {// BatchId: An entry ID, unique within the batch request.BatchIdint64 `json:"batchId,omitempty"`// Cancel: Required for cancel method.Cancel *OrdersCustomBatchRequestEntryCancel `json:"cancel,omitempty"`// CancelLineItem: Required for cancelLineItem method.CancelLineItem *OrdersCustomBatchRequestEntryCancelLineItem `json:"cancelLineItem,omitempty"`// InStoreRefundLineItem: Required for inStoreReturnLineItem method.InStoreRefundLineItem *OrdersCustomBatchRequestEntryInStoreRefundLineItem `json:"inStoreRefundLineItem,omitempty"`// MerchantId: The ID of the managing account.MerchantIduint64 `json:"merchantId,omitempty,string"`// MerchantOrderId: The merchant order id. Required for// updateMerchantOrderId and getByMerchantOrderId methods.MerchantOrderIdstring `json:"merchantOrderId,omitempty"`// Method: The method to apply.Methodstring `json:"method,omitempty"`// OperationId: The ID of the operation. Unique across all operations// for a given order. Required for all methods beside get and// getByMerchantOrderId.OperationIdstring `json:"operationId,omitempty"`// OrderId: The ID of the order. Required for all methods beside// getByMerchantOrderId.OrderIdstring `json:"orderId,omitempty"`// Refund: Required for refund method.Refund *OrdersCustomBatchRequestEntryRefund `json:"refund,omitempty"`// RejectReturnLineItem: Required for rejectReturnLineItem method.RejectReturnLineItem *OrdersCustomBatchRequestEntryRejectReturnLineItem `json:"rejectReturnLineItem,omitempty"`// ReturnLineItem: Required for returnLineItem method.ReturnLineItem *OrdersCustomBatchRequestEntryReturnLineItem `json:"returnLineItem,omitempty"`// ReturnRefundLineItem: Required for returnRefundLineItem method.ReturnRefundLineItem *OrdersCustomBatchRequestEntryReturnRefundLineItem `json:"returnRefundLineItem,omitempty"`// SetLineItemMetadata: Required for setLineItemMetadata method.SetLineItemMetadata *OrdersCustomBatchRequestEntrySetLineItemMetadata `json:"setLineItemMetadata,omitempty"`// ShipLineItems: Required for shipLineItems method.ShipLineItems *OrdersCustomBatchRequestEntryShipLineItems `json:"shipLineItems,omitempty"`// UpdateLineItemShippingDetails: Required for// updateLineItemShippingDate method.UpdateLineItemShippingDetails *OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails `json:"updateLineItemShippingDetails,omitempty"`// UpdateShipment: Required for updateShipment method.UpdateShipment *OrdersCustomBatchRequestEntryUpdateShipment `json:"updateShipment,omitempty"`// ForceSendFields is a list of field names (e.g. "BatchId") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BatchId") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCustomBatchRequestEntry)MarshalJSON

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

typeOrdersCustomBatchRequestEntryCancel

type OrdersCustomBatchRequestEntryCancel struct {// Reason: The reason for the cancellation.Reasonstring `json:"reason,omitempty"`// ReasonText: The explanation of the reason.ReasonTextstring `json:"reasonText,omitempty"`// ForceSendFields is a list of field names (e.g. "Reason") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Reason") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCustomBatchRequestEntryCancel)MarshalJSON

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

typeOrdersCustomBatchRequestEntryCancelLineItem

type OrdersCustomBatchRequestEntryCancelLineItem struct {// Amount: Deprecated. Please use amountPretax and amountTax instead.Amount *Price `json:"amount,omitempty"`// AmountPretax: Amount to refund for the cancelation. Optional. If not// set, Google will calculate the default based on the price and tax of// the items involved. The amount must not be larger than the net amount// left on the order.AmountPretax *Price `json:"amountPretax,omitempty"`// AmountTax: Tax amount that correspond to cancellation amount in// amountPretax.AmountTax *Price `json:"amountTax,omitempty"`// LineItemId: The ID of the line item to cancel. Either lineItemId or// productId is required.LineItemIdstring `json:"lineItemId,omitempty"`// ProductId: The ID of the product to cancel. This is the REST ID used// in the products service. Either lineItemId or productId is required.ProductIdstring `json:"productId,omitempty"`// Quantity: The quantity to cancel.Quantityint64 `json:"quantity,omitempty"`// Reason: The reason for the cancellation.Reasonstring `json:"reason,omitempty"`// ReasonText: The explanation of the reason.ReasonTextstring `json:"reasonText,omitempty"`// ForceSendFields is a list of field names (e.g. "Amount") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Amount") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCustomBatchRequestEntryCancelLineItem)MarshalJSON

typeOrdersCustomBatchRequestEntryCreateTestReturnReturnItem

type OrdersCustomBatchRequestEntryCreateTestReturnReturnItem struct {// LineItemId: The ID of the line item to return.LineItemIdstring `json:"lineItemId,omitempty"`// Quantity: Quantity that is returned.Quantityint64 `json:"quantity,omitempty"`// ForceSendFields is a list of field names (e.g. "LineItemId") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LineItemId") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCustomBatchRequestEntryCreateTestReturnReturnItem)MarshalJSON

typeOrdersCustomBatchRequestEntryInStoreRefundLineItem

type OrdersCustomBatchRequestEntryInStoreRefundLineItem struct {// AmountPretax: The amount that is refunded. Required.AmountPretax *Price `json:"amountPretax,omitempty"`// AmountTax: Tax amount that correspond to refund amount in// amountPretax. Required.AmountTax *Price `json:"amountTax,omitempty"`// LineItemId: The ID of the line item to return. Either lineItemId or// productId is required.LineItemIdstring `json:"lineItemId,omitempty"`// ProductId: The ID of the product to return. This is the REST ID used// in the products service. Either lineItemId or productId is required.ProductIdstring `json:"productId,omitempty"`// Quantity: The quantity to return and refund.Quantityint64 `json:"quantity,omitempty"`// Reason: The reason for the return.Reasonstring `json:"reason,omitempty"`// ReasonText: The explanation of the reason.ReasonTextstring `json:"reasonText,omitempty"`// ForceSendFields is a list of field names (e.g. "AmountPretax") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AmountPretax") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCustomBatchRequestEntryInStoreRefundLineItem)MarshalJSON

typeOrdersCustomBatchRequestEntryRefund

type OrdersCustomBatchRequestEntryRefund struct {// Amount: Deprecated. Please use amountPretax and amountTax instead.Amount *Price `json:"amount,omitempty"`// AmountPretax: The amount that is refunded. Either amount or// amountPretax and amountTax should be filled.AmountPretax *Price `json:"amountPretax,omitempty"`// AmountTax: Tax amount that correspond to refund amount in// amountPretax.AmountTax *Price `json:"amountTax,omitempty"`// Reason: The reason for the refund.Reasonstring `json:"reason,omitempty"`// ReasonText: The explanation of the reason.ReasonTextstring `json:"reasonText,omitempty"`// ForceSendFields is a list of field names (e.g. "Amount") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Amount") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCustomBatchRequestEntryRefund)MarshalJSON

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

typeOrdersCustomBatchRequestEntryRejectReturnLineItem

type OrdersCustomBatchRequestEntryRejectReturnLineItem struct {// LineItemId: The ID of the line item to return. Either lineItemId or// productId is required.LineItemIdstring `json:"lineItemId,omitempty"`// ProductId: The ID of the product to return. This is the REST ID used// in the products service. Either lineItemId or productId is required.ProductIdstring `json:"productId,omitempty"`// Quantity: The quantity to return and refund.Quantityint64 `json:"quantity,omitempty"`// Reason: The reason for the return.Reasonstring `json:"reason,omitempty"`// ReasonText: The explanation of the reason.ReasonTextstring `json:"reasonText,omitempty"`// ForceSendFields is a list of field names (e.g. "LineItemId") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LineItemId") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCustomBatchRequestEntryRejectReturnLineItem)MarshalJSON

typeOrdersCustomBatchRequestEntryReturnLineItem

type OrdersCustomBatchRequestEntryReturnLineItem struct {// LineItemId: The ID of the line item to return. Either lineItemId or// productId is required.LineItemIdstring `json:"lineItemId,omitempty"`// ProductId: The ID of the product to return. This is the REST ID used// in the products service. Either lineItemId or productId is required.ProductIdstring `json:"productId,omitempty"`// Quantity: The quantity to return.Quantityint64 `json:"quantity,omitempty"`// Reason: The reason for the return.Reasonstring `json:"reason,omitempty"`// ReasonText: The explanation of the reason.ReasonTextstring `json:"reasonText,omitempty"`// ForceSendFields is a list of field names (e.g. "LineItemId") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LineItemId") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCustomBatchRequestEntryReturnLineItem)MarshalJSON

typeOrdersCustomBatchRequestEntryReturnRefundLineItem

type OrdersCustomBatchRequestEntryReturnRefundLineItem struct {// AmountPretax: The amount that is refunded. If omitted, refundless// return is assumed (same as calling returnLineItem method). Optional,// but if filled then both amountPretax and amountTax must be set.AmountPretax *Price `json:"amountPretax,omitempty"`// AmountTax: Tax amount that correspond to refund amount in// amountPretax.AmountTax *Price `json:"amountTax,omitempty"`// LineItemId: The ID of the line item to return. Either lineItemId or// productId is required.LineItemIdstring `json:"lineItemId,omitempty"`// ProductId: The ID of the product to return. This is the REST ID used// in the products service. Either lineItemId or productId is required.ProductIdstring `json:"productId,omitempty"`// Quantity: The quantity to return and refund.Quantityint64 `json:"quantity,omitempty"`// Reason: The reason for the return.Reasonstring `json:"reason,omitempty"`// ReasonText: The explanation of the reason.ReasonTextstring `json:"reasonText,omitempty"`// ForceSendFields is a list of field names (e.g. "AmountPretax") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AmountPretax") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCustomBatchRequestEntryReturnRefundLineItem)MarshalJSON

typeOrdersCustomBatchRequestEntrySetLineItemMetadata

type OrdersCustomBatchRequestEntrySetLineItemMetadata struct {Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"`// LineItemId: The ID of the line item to set metadata. Either// lineItemId or productId is required.LineItemIdstring `json:"lineItemId,omitempty"`// ProductId: The ID of the product to set metadata. This is the REST ID// used in the products service. Either lineItemId or productId is// required.ProductIdstring `json:"productId,omitempty"`// ForceSendFields is a list of field names (e.g. "Annotations") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Annotations") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCustomBatchRequestEntrySetLineItemMetadata)MarshalJSON

typeOrdersCustomBatchRequestEntryShipLineItems

type OrdersCustomBatchRequestEntryShipLineItems struct {// Carrier: Deprecated. Please use shipmentInfo instead. The carrier// handling the shipment. See shipments[].carrier in the  Orders// resource representation for a list of acceptable values.Carrierstring `json:"carrier,omitempty"`// LineItems: Line items to ship.LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"`// ShipmentGroupId: ID of the shipment group. Required for orders that// use the orderinvoices service.ShipmentGroupIdstring `json:"shipmentGroupId,omitempty"`// ShipmentId: Deprecated. Please use shipmentInfo instead. The ID of// the shipment.ShipmentIdstring `json:"shipmentId,omitempty"`// ShipmentInfos: Shipment information. This field is repeated because a// single line item can be shipped in several packages (and have several// tracking IDs).ShipmentInfos []*OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo `json:"shipmentInfos,omitempty"`// TrackingId: Deprecated. Please use shipmentInfo instead. The tracking// id for the shipment.TrackingIdstring `json:"trackingId,omitempty"`// ForceSendFields is a list of field names (e.g. "Carrier") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Carrier") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCustomBatchRequestEntryShipLineItems)MarshalJSON

typeOrdersCustomBatchRequestEntryShipLineItemsShipmentInfo

type OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo struct {// Carrier: The carrier handling the shipment. See shipments[].carrier// in the  Orders resource representation for a list of acceptable// values.Carrierstring `json:"carrier,omitempty"`// ShipmentId: The ID of the shipment.ShipmentIdstring `json:"shipmentId,omitempty"`// TrackingId: The tracking id for the shipment.TrackingIdstring `json:"trackingId,omitempty"`// ForceSendFields is a list of field names (e.g. "Carrier") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Carrier") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo)MarshalJSON

typeOrdersCustomBatchRequestEntryUpdateLineItemShippingDetails

type OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails struct {// DeliverByDate: Updated delivery by date, in ISO 8601 format. If not// specified only ship by date is updated.DeliverByDatestring `json:"deliverByDate,omitempty"`// LineItemId: The ID of the line item to set metadata. Either// lineItemId or productId is required.LineItemIdstring `json:"lineItemId,omitempty"`// ProductId: The ID of the product to set metadata. This is the REST ID// used in the products service. Either lineItemId or productId is// required.ProductIdstring `json:"productId,omitempty"`// ShipByDate: Updated ship by date, in ISO 8601 format. If not// specified only deliver by date is updated.ShipByDatestring `json:"shipByDate,omitempty"`// ForceSendFields is a list of field names (e.g. "DeliverByDate") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DeliverByDate") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails)MarshalJSON

typeOrdersCustomBatchRequestEntryUpdateShipment

type OrdersCustomBatchRequestEntryUpdateShipment struct {// Carrier: The carrier handling the shipment. Not updated if missing.// See shipments[].carrier in the  Orders resource representation for a// list of acceptable values.Carrierstring `json:"carrier,omitempty"`// DeliveryDate: Date on which the shipment has been delivered, in ISO// 8601 format. Optional and can be provided only if status is// delivered.DeliveryDatestring `json:"deliveryDate,omitempty"`// ShipmentId: The ID of the shipment.ShipmentIdstring `json:"shipmentId,omitempty"`// Status: New status for the shipment. Not updated if missing.Statusstring `json:"status,omitempty"`// TrackingId: The tracking id for the shipment. Not updated if missing.TrackingIdstring `json:"trackingId,omitempty"`// ForceSendFields is a list of field names (e.g. "Carrier") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Carrier") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCustomBatchRequestEntryUpdateShipment)MarshalJSON

typeOrdersCustomBatchResponse

type OrdersCustomBatchResponse struct {// Entries: The result of the execution of the batch requests.Entries []*OrdersCustomBatchResponseEntry `json:"entries,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersCustomBatchResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Entries") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Entries") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCustomBatchResponse)MarshalJSON

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

typeOrdersCustomBatchResponseEntry

type OrdersCustomBatchResponseEntry struct {// BatchId: The ID of the request entry this entry responds to.BatchIdint64 `json:"batchId,omitempty"`// Errors: A list of errors defined if and only if the request failed.Errors *Errors `json:"errors,omitempty"`// ExecutionStatus: The status of the execution. Only defined if// - the request was successful; and// - the method is not get, getByMerchantOrderId, or one of the test// methods.ExecutionStatusstring `json:"executionStatus,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersCustomBatchResponseEntry".Kindstring `json:"kind,omitempty"`// Order: The retrieved order. Only defined if the method is get and if// the request was successful.Order *Order `json:"order,omitempty"`// ForceSendFields is a list of field names (e.g. "BatchId") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BatchId") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersCustomBatchResponseEntry)MarshalJSON

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

typeOrdersCustombatchCall

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

func (*OrdersCustombatchCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersCustombatchCall)Do

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

func (*OrdersCustombatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersCustombatchCall)Header

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

typeOrdersGetByMerchantOrderIdResponse

type OrdersGetByMerchantOrderIdResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersGetByMerchantOrderIdResponse".Kindstring `json:"kind,omitempty"`// Order: The requested order.Order *Order `json:"order,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersGetByMerchantOrderIdResponse)MarshalJSON

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

typeOrdersGetCall

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

func (*OrdersGetCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersGetCall)Do

func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order,error)

Do executes the "content.orders.get" call.Exactly one of *Order or error will be non-nil. Any non-2xx statuscode is an error. Response headers are in either*Order.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModifiedwas returned.

func (*OrdersGetCall)Fields

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersGetCall)Header

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

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

func (*OrdersGetCall)IfNoneMatch

func (c *OrdersGetCall) IfNoneMatch(entityTagstring) *OrdersGetCall

IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.

typeOrdersGetTestOrderTemplateResponse

type OrdersGetTestOrderTemplateResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersGetTestOrderTemplateResponse".Kindstring `json:"kind,omitempty"`// Template: The requested test order template.Template *TestOrder `json:"template,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersGetTestOrderTemplateResponse)MarshalJSON

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

typeOrdersGetbymerchantorderidCall

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

func (*OrdersGetbymerchantorderidCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersGetbymerchantorderidCall)Do

Do executes the "content.orders.getbymerchantorderid" call.Exactly one of *OrdersGetByMerchantOrderIdResponse or error will benon-nil. Any non-2xx status code is an error. Response headers are ineither *OrdersGetByMerchantOrderIdResponse.ServerResponse.Header or(if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.

func (*OrdersGetbymerchantorderidCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersGetbymerchantorderidCall)Header

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

func (*OrdersGetbymerchantorderidCall)IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.

typeOrdersGettestordertemplateCall

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

func (*OrdersGettestordertemplateCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersGettestordertemplateCall)Country

Country sets the optional parameter "country": The country of thetemplate to retrieve. Defaults to US.

func (*OrdersGettestordertemplateCall)Do

Do executes the "content.orders.gettestordertemplate" call.Exactly one of *OrdersGetTestOrderTemplateResponse or error will benon-nil. Any non-2xx status code is an error. Response headers are ineither *OrdersGetTestOrderTemplateResponse.ServerResponse.Header or(if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.

func (*OrdersGettestordertemplateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersGettestordertemplateCall)Header

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

func (*OrdersGettestordertemplateCall)IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.

typeOrdersInStoreRefundLineItemRequest

type OrdersInStoreRefundLineItemRequest struct {// AmountPretax: The amount that is refunded. Required.AmountPretax *Price `json:"amountPretax,omitempty"`// AmountTax: Tax amount that correspond to refund amount in// amountPretax. Required.AmountTax *Price `json:"amountTax,omitempty"`// LineItemId: The ID of the line item to return. Either lineItemId or// productId is required.LineItemIdstring `json:"lineItemId,omitempty"`// OperationId: The ID of the operation. Unique across all operations// for a given order.OperationIdstring `json:"operationId,omitempty"`// ProductId: The ID of the product to return. This is the REST ID used// in the products service. Either lineItemId or productId is required.ProductIdstring `json:"productId,omitempty"`// Quantity: The quantity to return and refund.Quantityint64 `json:"quantity,omitempty"`// Reason: The reason for the return.Reasonstring `json:"reason,omitempty"`// ReasonText: The explanation of the reason.ReasonTextstring `json:"reasonText,omitempty"`// ForceSendFields is a list of field names (e.g. "AmountPretax") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AmountPretax") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersInStoreRefundLineItemRequest)MarshalJSON

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

typeOrdersInStoreRefundLineItemResponse

type OrdersInStoreRefundLineItemResponse struct {// ExecutionStatus: The status of the execution.ExecutionStatusstring `json:"executionStatus,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersInStoreRefundLineItemResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExecutionStatus") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrdersInStoreRefundLineItemResponse)MarshalJSON

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

typeOrdersInstorerefundlineitemCall

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

func (*OrdersInstorerefundlineitemCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersInstorerefundlineitemCall)Do

Do executes the "content.orders.instorerefundlineitem" call.Exactly one of *OrdersInStoreRefundLineItemResponse or error will benon-nil. Any non-2xx status code is an error. Response headers are ineither *OrdersInStoreRefundLineItemResponse.ServerResponse.Header or(if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.

func (*OrdersInstorerefundlineitemCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersInstorerefundlineitemCall)Header

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

typeOrdersListCall

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

func (*OrdersListCall)Acknowledged

func (c *OrdersListCall) Acknowledged(acknowledgedbool) *OrdersListCall

Acknowledged sets the optional parameter "acknowledged": Obtainsorders that match the acknowledgement status. When set to true,obtains orders that have been acknowledged. When false, obtainsorders that have not been acknowledged.We recommend using this filter set to false, in conjunction with theacknowledge call, such that only un-acknowledged orders are returned.

func (*OrdersListCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersListCall)Do

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

func (*OrdersListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersListCall)Header

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

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

func (*OrdersListCall)IfNoneMatch

func (c *OrdersListCall) IfNoneMatch(entityTagstring) *OrdersListCall

IfNoneMatch sets the optional parameter which makes the operationfail if the object's ETag matches the given value. This is useful forgetting updates only after the object has changed since the lastrequest. Use googleapi.IsNotModified to check whether the responseerror from Do is the result of In-None-Match.

func (*OrdersListCall)MaxResults

func (c *OrdersListCall) MaxResults(maxResultsint64) *OrdersListCall

MaxResults sets the optional parameter "maxResults": The maximumnumber of orders to return in the response, used for paging. Thedefault value is 25 orders per page, and the maximum allowed value is250 orders per page.Known issue: All List calls will return all Orders without limitregardless of the value of this field.

func (*OrdersListCall)OrderBy

func (c *OrdersListCall) OrderBy(orderBystring) *OrdersListCall

OrderBy sets the optional parameter "orderBy": The ordering of thereturned list. The only supported value are placedDate desc andplacedDate asc for now, which returns orders sorted by placementdate. "placedDate desc" stands for listing orders by placement date,from oldest to most recent. "placedDate asc" stands for listingorders by placement date, from most recent to oldest. In futurereleases we'll support other sorting criteria.

Possible values:

"placedDate asc""placedDate desc"

func (*OrdersListCall)PageToken

func (c *OrdersListCall) PageToken(pageTokenstring) *OrdersListCall

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

func (*OrdersListCall)Pages

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

func (*OrdersListCall)PlacedDateEnd

func (c *OrdersListCall) PlacedDateEnd(placedDateEndstring) *OrdersListCall

PlacedDateEnd sets the optional parameter "placedDateEnd": Obtainsorders placed before this date (exclusively), in ISO 8601 format.

func (*OrdersListCall)PlacedDateStart

func (c *OrdersListCall) PlacedDateStart(placedDateStartstring) *OrdersListCall

PlacedDateStart sets the optional parameter "placedDateStart":Obtains orders placed after this date (inclusively), in ISO 8601format.

func (*OrdersListCall)Statuses

func (c *OrdersListCall) Statuses(statuses ...string) *OrdersListCall

Statuses sets the optional parameter "statuses": Obtains orders thatmatch any of the specified statuses. Multiple values can be specifiedwith comma separation. Additionally, please note that active is ashortcut for pendingShipment and partiallyShipped, and completed is ashortcut for shipped , partiallyDelivered, delivered,partiallyReturned, returned, and canceled.

Possible values:

"active""canceled""completed""delivered""inProgress""partiallyDelivered""partiallyReturned""partiallyShipped""pendingShipment""returned""shipped"

typeOrdersListResponse

type OrdersListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: The token for the retrieval of the next page of// orders.NextPageTokenstring `json:"nextPageToken,omitempty"`Resources []*Order `json:"resources,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersListResponse)MarshalJSON

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

typeOrdersRefundCall

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

func (*OrdersRefundCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersRefundCall)Do

Do executes the "content.orders.refund" call.Exactly one of *OrdersRefundResponse or error will be non-nil. Anynon-2xx status code is an error. Response headers are in either*OrdersRefundResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.

func (*OrdersRefundCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersRefundCall)Header

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

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

typeOrdersRefundRequest

type OrdersRefundRequest struct {// Amount: Deprecated. Please use amountPretax and amountTax instead.Amount *Price `json:"amount,omitempty"`// AmountPretax: The amount that is refunded. Either amount or// amountPretax and amountTax should be filled.AmountPretax *Price `json:"amountPretax,omitempty"`// AmountTax: Tax amount that correspond to refund amount in// amountPretax.AmountTax *Price `json:"amountTax,omitempty"`// OperationId: The ID of the operation. Unique across all operations// for a given order.OperationIdstring `json:"operationId,omitempty"`// Reason: The reason for the refund.Reasonstring `json:"reason,omitempty"`// ReasonText: The explanation of the reason.ReasonTextstring `json:"reasonText,omitempty"`// ForceSendFields is a list of field names (e.g. "Amount") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Amount") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersRefundRequest)MarshalJSON

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

typeOrdersRefundResponse

type OrdersRefundResponse struct {// ExecutionStatus: The status of the execution.ExecutionStatusstring `json:"executionStatus,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersRefundResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExecutionStatus") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrdersRefundResponse)MarshalJSON

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

typeOrdersRejectReturnLineItemRequest

type OrdersRejectReturnLineItemRequest struct {// LineItemId: The ID of the line item to return. Either lineItemId or// productId is required.LineItemIdstring `json:"lineItemId,omitempty"`// OperationId: The ID of the operation. Unique across all operations// for a given order.OperationIdstring `json:"operationId,omitempty"`// ProductId: The ID of the product to return. This is the REST ID used// in the products service. Either lineItemId or productId is required.ProductIdstring `json:"productId,omitempty"`// Quantity: The quantity to return and refund.Quantityint64 `json:"quantity,omitempty"`// Reason: The reason for the return.Reasonstring `json:"reason,omitempty"`// ReasonText: The explanation of the reason.ReasonTextstring `json:"reasonText,omitempty"`// ForceSendFields is a list of field names (e.g. "LineItemId") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LineItemId") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersRejectReturnLineItemRequest)MarshalJSON

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

typeOrdersRejectReturnLineItemResponse

type OrdersRejectReturnLineItemResponse struct {// ExecutionStatus: The status of the execution.ExecutionStatusstring `json:"executionStatus,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersRejectReturnLineItemResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExecutionStatus") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrdersRejectReturnLineItemResponse)MarshalJSON

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

typeOrdersRejectreturnlineitemCall

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

func (*OrdersRejectreturnlineitemCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersRejectreturnlineitemCall)Do

Do executes the "content.orders.rejectreturnlineitem" call.Exactly one of *OrdersRejectReturnLineItemResponse or error will benon-nil. Any non-2xx status code is an error. Response headers are ineither *OrdersRejectReturnLineItemResponse.ServerResponse.Header or(if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.

func (*OrdersRejectreturnlineitemCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersRejectreturnlineitemCall)Header

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

typeOrdersReturnLineItemRequest

type OrdersReturnLineItemRequest struct {// LineItemId: The ID of the line item to return. Either lineItemId or// productId is required.LineItemIdstring `json:"lineItemId,omitempty"`// OperationId: The ID of the operation. Unique across all operations// for a given order.OperationIdstring `json:"operationId,omitempty"`// ProductId: The ID of the product to return. This is the REST ID used// in the products service. Either lineItemId or productId is required.ProductIdstring `json:"productId,omitempty"`// Quantity: The quantity to return.Quantityint64 `json:"quantity,omitempty"`// Reason: The reason for the return.Reasonstring `json:"reason,omitempty"`// ReasonText: The explanation of the reason.ReasonTextstring `json:"reasonText,omitempty"`// ForceSendFields is a list of field names (e.g. "LineItemId") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LineItemId") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersReturnLineItemRequest)MarshalJSON

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

typeOrdersReturnLineItemResponse

type OrdersReturnLineItemResponse struct {// ExecutionStatus: The status of the execution.ExecutionStatusstring `json:"executionStatus,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersReturnLineItemResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExecutionStatus") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrdersReturnLineItemResponse)MarshalJSON

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

typeOrdersReturnRefundLineItemRequest

type OrdersReturnRefundLineItemRequest struct {// AmountPretax: The amount that is refunded. If omitted, refundless// return is assumed (same as calling returnLineItem method). Optional,// but if filled then both amountPretax and amountTax must be set.AmountPretax *Price `json:"amountPretax,omitempty"`// AmountTax: Tax amount that correspond to refund amount in// amountPretax.AmountTax *Price `json:"amountTax,omitempty"`// LineItemId: The ID of the line item to return. Either lineItemId or// productId is required.LineItemIdstring `json:"lineItemId,omitempty"`// OperationId: The ID of the operation. Unique across all operations// for a given order.OperationIdstring `json:"operationId,omitempty"`// ProductId: The ID of the product to return. This is the REST ID used// in the products service. Either lineItemId or productId is required.ProductIdstring `json:"productId,omitempty"`// Quantity: The quantity to return and refund.Quantityint64 `json:"quantity,omitempty"`// Reason: The reason for the return.Reasonstring `json:"reason,omitempty"`// ReasonText: The explanation of the reason.ReasonTextstring `json:"reasonText,omitempty"`// ForceSendFields is a list of field names (e.g. "AmountPretax") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AmountPretax") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersReturnRefundLineItemRequest)MarshalJSON

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

typeOrdersReturnRefundLineItemResponse

type OrdersReturnRefundLineItemResponse struct {// ExecutionStatus: The status of the execution.ExecutionStatusstring `json:"executionStatus,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersReturnRefundLineItemResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExecutionStatus") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrdersReturnRefundLineItemResponse)MarshalJSON

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

typeOrdersReturnlineitemCall

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

func (*OrdersReturnlineitemCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersReturnlineitemCall)Do

Do executes the "content.orders.returnlineitem" call.Exactly one of *OrdersReturnLineItemResponse or error will benon-nil. Any non-2xx status code is an error. Response headers are ineither *OrdersReturnLineItemResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.

func (*OrdersReturnlineitemCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersReturnlineitemCall)Header

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

typeOrdersReturnrefundlineitemCall

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

func (*OrdersReturnrefundlineitemCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersReturnrefundlineitemCall)Do

Do executes the "content.orders.returnrefundlineitem" call.Exactly one of *OrdersReturnRefundLineItemResponse or error will benon-nil. Any non-2xx status code is an error. Response headers are ineither *OrdersReturnRefundLineItemResponse.ServerResponse.Header or(if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.

func (*OrdersReturnrefundlineitemCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersReturnrefundlineitemCall)Header

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

typeOrdersService

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

funcNewOrdersService

func NewOrdersService(s *APIService) *OrdersService

func (*OrdersService)Acknowledge

func (r *OrdersService) Acknowledge(merchantIduint64, orderIdstring, ordersacknowledgerequest *OrdersAcknowledgeRequest) *OrdersAcknowledgeCall

Acknowledge: Marks an order as acknowledged.

func (*OrdersService)Advancetestorder

func (r *OrdersService) Advancetestorder(merchantIduint64, orderIdstring) *OrdersAdvancetestorderCall

Advancetestorder: Sandbox only. Moves a test order from state"inProgress" to state "pendingShipment".

func (*OrdersService)Cancel

func (r *OrdersService) Cancel(merchantIduint64, orderIdstring, orderscancelrequest *OrdersCancelRequest) *OrdersCancelCall

Cancel: Cancels all line items in an order, making a full refund.

func (*OrdersService)Cancellineitem

func (r *OrdersService) Cancellineitem(merchantIduint64, orderIdstring, orderscancellineitemrequest *OrdersCancelLineItemRequest) *OrdersCancellineitemCall

Cancellineitem: Cancels a line item, making a full refund.

func (*OrdersService)Canceltestorderbycustomer

func (r *OrdersService) Canceltestorderbycustomer(merchantIduint64, orderIdstring, orderscanceltestorderbycustomerrequest *OrdersCancelTestOrderByCustomerRequest) *OrdersCanceltestorderbycustomerCall

Canceltestorderbycustomer: Sandbox only. Cancels a test order forcustomer-initiated cancellation.

func (*OrdersService)Createtestorder

func (r *OrdersService) Createtestorder(merchantIduint64, orderscreatetestorderrequest *OrdersCreateTestOrderRequest) *OrdersCreatetestorderCall

Createtestorder: Sandbox only. Creates a test order.

func (*OrdersService)Createtestreturn

func (r *OrdersService) Createtestreturn(merchantIduint64, orderIdstring, orderscreatetestreturnrequest *OrdersCreateTestReturnRequest) *OrdersCreatetestreturnCall

Createtestreturn: Sandbox only. Creates a test return.

func (*OrdersService)Custombatch

func (r *OrdersService) Custombatch(orderscustombatchrequest *OrdersCustomBatchRequest) *OrdersCustombatchCall

Custombatch: Retrieves or modifies multiple orders in a singlerequest.

func (*OrdersService)Get

func (r *OrdersService) Get(merchantIduint64, orderIdstring) *OrdersGetCall

Get: Retrieves an order from your Merchant Center account.

func (*OrdersService)Getbymerchantorderid

func (r *OrdersService) Getbymerchantorderid(merchantIduint64, merchantOrderIdstring) *OrdersGetbymerchantorderidCall

Getbymerchantorderid: Retrieves an order using merchant order id.

func (*OrdersService)Gettestordertemplate

func (r *OrdersService) Gettestordertemplate(merchantIduint64, templateNamestring) *OrdersGettestordertemplateCall

Gettestordertemplate: Sandbox only. Retrieves an order template thatcan be used to quickly create a new order in sandbox.

func (*OrdersService)Instorerefundlineitem

func (r *OrdersService) Instorerefundlineitem(merchantIduint64, orderIdstring, ordersinstorerefundlineitemrequest *OrdersInStoreRefundLineItemRequest) *OrdersInstorerefundlineitemCall

Instorerefundlineitem: Notifies that item return and refund washandled directly by merchant outside of Google payments processing(e.g. cash refund done in store).

func (*OrdersService)List

func (r *OrdersService) List(merchantIduint64) *OrdersListCall

List: Lists the orders in your Merchant Center account.

func (*OrdersService)Refund

func (r *OrdersService) Refund(merchantIduint64, orderIdstring, ordersrefundrequest *OrdersRefundRequest) *OrdersRefundCall

Refund: Deprecated, please use returnRefundLineItem instead.

func (*OrdersService)Rejectreturnlineitem

func (r *OrdersService) Rejectreturnlineitem(merchantIduint64, orderIdstring, ordersrejectreturnlineitemrequest *OrdersRejectReturnLineItemRequest) *OrdersRejectreturnlineitemCall

Rejectreturnlineitem: Rejects return on an line item.

func (*OrdersService)Returnlineitem

func (r *OrdersService) Returnlineitem(merchantIduint64, orderIdstring, ordersreturnlineitemrequest *OrdersReturnLineItemRequest) *OrdersReturnlineitemCall

Returnlineitem: Returns a line item.

func (*OrdersService)Returnrefundlineitem

func (r *OrdersService) Returnrefundlineitem(merchantIduint64, orderIdstring, ordersreturnrefundlineitemrequest *OrdersReturnRefundLineItemRequest) *OrdersReturnrefundlineitemCall

Returnrefundlineitem: Returns and refunds a line item. Note that thismethod can only be called on fully shipped orders.

func (*OrdersService)Setlineitemmetadata

func (r *OrdersService) Setlineitemmetadata(merchantIduint64, orderIdstring, orderssetlineitemmetadatarequest *OrdersSetLineItemMetadataRequest) *OrdersSetlineitemmetadataCall

Setlineitemmetadata: Sets (overrides) merchant provided annotationson the line item.

func (*OrdersService)Shiplineitems

func (r *OrdersService) Shiplineitems(merchantIduint64, orderIdstring, ordersshiplineitemsrequest *OrdersShipLineItemsRequest) *OrdersShiplineitemsCall

Shiplineitems: Marks line item(s) as shipped.

func (*OrdersService)Updatelineitemshippingdetails

func (r *OrdersService) Updatelineitemshippingdetails(merchantIduint64, orderIdstring, ordersupdatelineitemshippingdetailsrequest *OrdersUpdateLineItemShippingDetailsRequest) *OrdersUpdatelineitemshippingdetailsCall

Updatelineitemshippingdetails: Updates ship by and delivery by datesfor a line item.

func (*OrdersService)Updatemerchantorderid

func (r *OrdersService) Updatemerchantorderid(merchantIduint64, orderIdstring, ordersupdatemerchantorderidrequest *OrdersUpdateMerchantOrderIdRequest) *OrdersUpdatemerchantorderidCall

Updatemerchantorderid: Updates the merchant order ID for a givenorder.

func (*OrdersService)Updateshipment

func (r *OrdersService) Updateshipment(merchantIduint64, orderIdstring, ordersupdateshipmentrequest *OrdersUpdateShipmentRequest) *OrdersUpdateshipmentCall

Updateshipment: Updates a shipment's status, carrier, and/or trackingID.

typeOrdersSetLineItemMetadataRequest

type OrdersSetLineItemMetadataRequest struct {Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"`// LineItemId: The ID of the line item to set metadata. Either// lineItemId or productId is required.LineItemIdstring `json:"lineItemId,omitempty"`// OperationId: The ID of the operation. Unique across all operations// for a given order.OperationIdstring `json:"operationId,omitempty"`// ProductId: The ID of the product to set metadata. This is the REST ID// used in the products service. Either lineItemId or productId is// required.ProductIdstring `json:"productId,omitempty"`// ForceSendFields is a list of field names (e.g. "Annotations") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Annotations") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersSetLineItemMetadataRequest)MarshalJSON

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

typeOrdersSetLineItemMetadataResponse

type OrdersSetLineItemMetadataResponse struct {// ExecutionStatus: The status of the execution.ExecutionStatusstring `json:"executionStatus,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersSetLineItemMetadataResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExecutionStatus") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrdersSetLineItemMetadataResponse)MarshalJSON

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

typeOrdersSetlineitemmetadataCall

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

func (*OrdersSetlineitemmetadataCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersSetlineitemmetadataCall)Do

Do executes the "content.orders.setlineitemmetadata" call.Exactly one of *OrdersSetLineItemMetadataResponse or error will benon-nil. Any non-2xx status code is an error. Response headers are ineither *OrdersSetLineItemMetadataResponse.ServerResponse.Header or(if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.

func (*OrdersSetlineitemmetadataCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersSetlineitemmetadataCall)Header

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

typeOrdersShipLineItemsRequest

type OrdersShipLineItemsRequest struct {// Carrier: Deprecated. Please use shipmentInfo instead. The carrier// handling the shipment. See shipments[].carrier in the  Orders// resource representation for a list of acceptable values.Carrierstring `json:"carrier,omitempty"`// LineItems: Line items to ship.LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"`// OperationId: The ID of the operation. Unique across all operations// for a given order.OperationIdstring `json:"operationId,omitempty"`// ShipmentGroupId: ID of the shipment group. Required for orders that// use the orderinvoices service.ShipmentGroupIdstring `json:"shipmentGroupId,omitempty"`// ShipmentId: Deprecated. Please use shipmentInfo instead. The ID of// the shipment.ShipmentIdstring `json:"shipmentId,omitempty"`// ShipmentInfos: Shipment information. This field is repeated because a// single line item can be shipped in several packages (and have several// tracking IDs).ShipmentInfos []*OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo `json:"shipmentInfos,omitempty"`// TrackingId: Deprecated. Please use shipmentInfo instead. The tracking// id for the shipment.TrackingIdstring `json:"trackingId,omitempty"`// ForceSendFields is a list of field names (e.g. "Carrier") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Carrier") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersShipLineItemsRequest)MarshalJSON

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

typeOrdersShipLineItemsResponse

type OrdersShipLineItemsResponse struct {// ExecutionStatus: The status of the execution.ExecutionStatusstring `json:"executionStatus,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersShipLineItemsResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExecutionStatus") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrdersShipLineItemsResponse)MarshalJSON

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

typeOrdersShiplineitemsCall

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

func (*OrdersShiplineitemsCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersShiplineitemsCall)Do

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

func (*OrdersShiplineitemsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersShiplineitemsCall)Header

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

typeOrdersUpdateLineItemShippingDetailsRequest

type OrdersUpdateLineItemShippingDetailsRequest struct {// DeliverByDate: Updated delivery by date, in ISO 8601 format. If not// specified only ship by date is updated.DeliverByDatestring `json:"deliverByDate,omitempty"`// LineItemId: The ID of the line item to set metadata. Either// lineItemId or productId is required.LineItemIdstring `json:"lineItemId,omitempty"`// OperationId: The ID of the operation. Unique across all operations// for a given order.OperationIdstring `json:"operationId,omitempty"`// ProductId: The ID of the product to set metadata. This is the REST ID// used in the products service. Either lineItemId or productId is// required.ProductIdstring `json:"productId,omitempty"`// ShipByDate: Updated ship by date, in ISO 8601 format. If not// specified only deliver by date is updated.ShipByDatestring `json:"shipByDate,omitempty"`// ForceSendFields is a list of field names (e.g. "DeliverByDate") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DeliverByDate") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersUpdateLineItemShippingDetailsRequest)MarshalJSON

typeOrdersUpdateLineItemShippingDetailsResponse

type OrdersUpdateLineItemShippingDetailsResponse struct {// ExecutionStatus: The status of the execution.ExecutionStatusstring `json:"executionStatus,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersUpdateLineItemShippingDetailsResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExecutionStatus") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrdersUpdateLineItemShippingDetailsResponse)MarshalJSON

typeOrdersUpdateMerchantOrderIdRequest

type OrdersUpdateMerchantOrderIdRequest struct {// MerchantOrderId: The merchant order id to be assigned to the order.// Must be unique per merchant.MerchantOrderIdstring `json:"merchantOrderId,omitempty"`// OperationId: The ID of the operation. Unique across all operations// for a given order.OperationIdstring `json:"operationId,omitempty"`// ForceSendFields is a list of field names (e.g. "MerchantOrderId") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MerchantOrderId") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrdersUpdateMerchantOrderIdRequest)MarshalJSON

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

typeOrdersUpdateMerchantOrderIdResponse

type OrdersUpdateMerchantOrderIdResponse struct {// ExecutionStatus: The status of the execution.ExecutionStatusstring `json:"executionStatus,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersUpdateMerchantOrderIdResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExecutionStatus") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrdersUpdateMerchantOrderIdResponse)MarshalJSON

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

typeOrdersUpdateShipmentRequest

type OrdersUpdateShipmentRequest struct {// Carrier: The carrier handling the shipment. Not updated if missing.// See shipments[].carrier in the  Orders resource representation for a// list of acceptable values.Carrierstring `json:"carrier,omitempty"`// DeliveryDate: Date on which the shipment has been delivered, in ISO// 8601 format. Optional and can be provided only if status is// delivered.DeliveryDatestring `json:"deliveryDate,omitempty"`// OperationId: The ID of the operation. Unique across all operations// for a given order.OperationIdstring `json:"operationId,omitempty"`// ShipmentId: The ID of the shipment.ShipmentIdstring `json:"shipmentId,omitempty"`// Status: New status for the shipment. Not updated if missing.Statusstring `json:"status,omitempty"`// TrackingId: The tracking id for the shipment. Not updated if missing.TrackingIdstring `json:"trackingId,omitempty"`// ForceSendFields is a list of field names (e.g. "Carrier") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Carrier") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*OrdersUpdateShipmentRequest)MarshalJSON

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

typeOrdersUpdateShipmentResponse

type OrdersUpdateShipmentResponse struct {// ExecutionStatus: The status of the execution.ExecutionStatusstring `json:"executionStatus,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#ordersUpdateShipmentResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the// server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExecutionStatus") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*OrdersUpdateShipmentResponse)MarshalJSON

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

typeOrdersUpdatelineitemshippingdetailsCall

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

func (*OrdersUpdatelineitemshippingdetailsCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersUpdatelineitemshippingdetailsCall)Do

Do executes the "content.orders.updatelineitemshippingdetails" call.Exactly one of *OrdersUpdateLineItemShippingDetailsResponse or errorwill be non-nil. Any non-2xx status code is an error. Responseheaders are in either*OrdersUpdateLineItemShippingDetailsResponse.ServerResponse.Header or(if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.

func (*OrdersUpdatelineitemshippingdetailsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersUpdatelineitemshippingdetailsCall)Header

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

typeOrdersUpdatemerchantorderidCall

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

func (*OrdersUpdatemerchantorderidCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersUpdatemerchantorderidCall)Do

Do executes the "content.orders.updatemerchantorderid" call.Exactly one of *OrdersUpdateMerchantOrderIdResponse or error will benon-nil. Any non-2xx status code is an error. Response headers are ineither *OrdersUpdateMerchantOrderIdResponse.ServerResponse.Header or(if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified wasreturned.

func (*OrdersUpdatemerchantorderidCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersUpdatemerchantorderidCall)Header

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

typeOrdersUpdateshipmentCall

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

func (*OrdersUpdateshipmentCall)Context

Context sets the context to be used in this call's Do method. Anypending HTTP request will be aborted if the provided context iscanceled.

func (*OrdersUpdateshipmentCall)Do

Do executes the "content.orders.updateshipment" call.Exactly one of *OrdersUpdateShipmentResponse or error will benon-nil. Any non-2xx status code is an error. Response headers are ineither *OrdersUpdateShipmentResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error wasbecause http.StatusNotModified was returned.

func (*OrdersUpdateshipmentCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponsefor more information.

func (*OrdersUpdateshipmentCall)Header

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

typePrice

type Price struct {// Currency: The currency of the price.Currencystring `json:"currency,omitempty"`// Value: The price represented as a number.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Currency") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Currency") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*Price)MarshalJSON

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

typePromotion

type Promotion struct {// PromotionAmount: [required] Amount of the promotion. The values here// are the promotion applied to the unit price pretax and to the total// of the tax amounts.PromotionAmount *Amount `json:"promotionAmount,omitempty"`// PromotionId: [required] ID of the promotion.PromotionIdstring `json:"promotionId,omitempty"`// ForceSendFields is a list of field names (e.g. "PromotionAmount") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "PromotionAmount") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*Promotion)MarshalJSON

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

typeRefundReason

type RefundReason struct {Descriptionstring `json:"description,omitempty"`ReasonCodestring `json:"reasonCode,omitempty"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Description") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*RefundReason)MarshalJSON

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

typeReturnShipment

type ReturnShipment struct {CreationDatestring `json:"creationDate,omitempty"`ReturnMethodTypestring `json:"returnMethodType,omitempty"`ShipmentIdstring `json:"shipmentId,omitempty"`ShipmentTrackingInfos []*ShipmentTrackingInfo `json:"shipmentTrackingInfos,omitempty"`// ForceSendFields is a list of field names (e.g. "CreationDate") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreationDate") to include// in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. However, any field with// an empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*ReturnShipment)MarshalJSON

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

typeShipmentInvoice

type ShipmentInvoice struct {// InvoiceSummary: [required] Invoice summary.InvoiceSummary *InvoiceSummary `json:"invoiceSummary,omitempty"`// LineItemInvoices: [required] Invoice details per line item.LineItemInvoices []*ShipmentInvoiceLineItemInvoice `json:"lineItemInvoices,omitempty"`// ShipmentGroupId: [required] ID of the shipment group.ShipmentGroupIdstring `json:"shipmentGroupId,omitempty"`// ForceSendFields is a list of field names (e.g. "InvoiceSummary") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "InvoiceSummary") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*ShipmentInvoice)MarshalJSON

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

typeShipmentInvoiceLineItemInvoice

type ShipmentInvoiceLineItemInvoice struct {// LineItemId: ID of the line item. Either lineItemId or productId must// be set.LineItemIdstring `json:"lineItemId,omitempty"`// ProductId: ID of the product. This is the REST ID used in the// products service. Either lineItemId or productId must be set.ProductIdstring `json:"productId,omitempty"`// ShipmentUnitIds: [required] Unit IDs to define specific units within// the line item.ShipmentUnitIds []string `json:"shipmentUnitIds,omitempty"`// UnitInvoice: [required] Invoice details for a single unit.UnitInvoice *UnitInvoice `json:"unitInvoice,omitempty"`// ForceSendFields is a list of field names (e.g. "LineItemId") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LineItemId") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*ShipmentInvoiceLineItemInvoice)MarshalJSON

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

typeShipmentTrackingInfo

type ShipmentTrackingInfo struct {Carrierstring `json:"carrier,omitempty"`TrackingNumberstring `json:"trackingNumber,omitempty"`// ForceSendFields is a list of field names (e.g. "Carrier") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Carrier") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*ShipmentTrackingInfo)MarshalJSON

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

typeTestOrder

type TestOrder struct {// Customer: The details of the customer who placed the order.Customer *TestOrderCustomer `json:"customer,omitempty"`// EnableOrderinvoices: Whether the orderinvoices service should support// this order.EnableOrderinvoicesbool `json:"enableOrderinvoices,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed// string "content#testOrder".Kindstring `json:"kind,omitempty"`// LineItems: Line items that are ordered. At least one line item must// be provided.LineItems []*TestOrderLineItem `json:"lineItems,omitempty"`// NotificationMode: Determines if test order must be pulled by merchant// or pushed to merchant via push integration.NotificationModestring `json:"notificationMode,omitempty"`// PaymentMethod: The details of the payment method.PaymentMethod *TestOrderPaymentMethod `json:"paymentMethod,omitempty"`// PredefinedDeliveryAddress: Identifier of one of the predefined// delivery addresses for the delivery.PredefinedDeliveryAddressstring `json:"predefinedDeliveryAddress,omitempty"`// Promotions: Deprecated. The details of the merchant provided// promotions applied to the order. More details about the program are// here.Promotions []*OrderLegacyPromotion `json:"promotions,omitempty"`// ShippingCost: The total cost of shipping for all items.ShippingCost *Price `json:"shippingCost,omitempty"`// ShippingCostTax: The tax for the total shipping cost.ShippingCostTax *Price `json:"shippingCostTax,omitempty"`// ShippingOption: The requested shipping option.ShippingOptionstring `json:"shippingOption,omitempty"`// ForceSendFields is a list of field names (e.g. "Customer") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Customer") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*TestOrder)MarshalJSON

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

typeTestOrderCustomer

type TestOrderCustomer struct {// Email: Deprecated.Emailstring `json:"email,omitempty"`// ExplicitMarketingPreference: Deprecated. Please use// marketingRightsInfo instead.ExplicitMarketingPreferencebool `json:"explicitMarketingPreference,omitempty"`// FullName: Full name of the customer.FullNamestring `json:"fullName,omitempty"`// MarketingRightsInfo: Customer's marketing preferences.MarketingRightsInfo *TestOrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,omitempty"`// ForceSendFields is a list of field names (e.g. "Email") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Email") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*TestOrderCustomer)MarshalJSON

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

typeTestOrderCustomerMarketingRightsInfo

type TestOrderCustomerMarketingRightsInfo struct {// ExplicitMarketingPreference: Last know user use selection regards// marketing preferences. In certain cases selection might not be known,// so this field would be empty.ExplicitMarketingPreferencestring `json:"explicitMarketingPreference,omitempty"`// LastUpdatedTimestamp: Timestamp when last time marketing preference// was updated. Could be empty, if user wasn't offered a selection yet.LastUpdatedTimestampstring `json:"lastUpdatedTimestamp,omitempty"`// ForceSendFields is a list of field names (e.g.// "ExplicitMarketingPreference") to unconditionally include in API// requests. By default, fields with empty values are omitted from API// requests. However, any non-pointer, non-interface field appearing in// ForceSendFields will be sent to the server regardless of whether the// field is empty or not. This may be used to include empty fields in// Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g.// "ExplicitMarketingPreference") to include in API requests with the// JSON null value. By default, fields with empty values are omitted// from API requests. However, any field with an empty value appearing// in NullFields will be sent to the server as null. It is an error if a// field in this list has a non-empty value. This may be used to include// null fields in Patch requests.NullFields []string `json:"-"`}

func (*TestOrderCustomerMarketingRightsInfo)MarshalJSON

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

typeTestOrderLineItem

type TestOrderLineItem struct {// Product: Product data from the time of the order placement.Product *TestOrderLineItemProduct `json:"product,omitempty"`// QuantityOrdered: Number of items ordered.QuantityOrderedint64 `json:"quantityOrdered,omitempty"`// ReturnInfo: Details of the return policy for the line item.ReturnInfo *OrderLineItemReturnInfo `json:"returnInfo,omitempty"`// ShippingDetails: Details of the requested shipping for the line item.ShippingDetails *OrderLineItemShippingDetails `json:"shippingDetails,omitempty"`// UnitTax: Unit tax for the line item.UnitTax *Price `json:"unitTax,omitempty"`// ForceSendFields is a list of field names (e.g. "Product") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Product") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*TestOrderLineItem)MarshalJSON

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

typeTestOrderLineItemProduct

type TestOrderLineItemProduct struct {// Brand: Brand of the item.Brandstring `json:"brand,omitempty"`// Channel: The item's channel.Channelstring `json:"channel,omitempty"`// Condition: Condition or state of the item.Conditionstring `json:"condition,omitempty"`// ContentLanguage: The two-letter ISO 639-1 language code for the item.ContentLanguagestring `json:"contentLanguage,omitempty"`// Gtin: Global Trade Item Number (GTIN) of the item. Optional.Gtinstring `json:"gtin,omitempty"`// ImageLink: URL of an image of the item.ImageLinkstring `json:"imageLink,omitempty"`// ItemGroupId: Shared identifier for all variants of the same product.// Optional.ItemGroupIdstring `json:"itemGroupId,omitempty"`// Mpn: Manufacturer Part Number (MPN) of the item. Optional.Mpnstring `json:"mpn,omitempty"`// OfferId: An identifier of the item.OfferIdstring `json:"offerId,omitempty"`// Price: The price for the product.Price *Price `json:"price,omitempty"`// TargetCountry: The CLDR territory code of the target country of the// product.TargetCountrystring `json:"targetCountry,omitempty"`// Title: The title of the product.Titlestring `json:"title,omitempty"`// VariantAttributes: Variant attributes for the item. Optional.VariantAttributes []*OrderLineItemProductVariantAttribute `json:"variantAttributes,omitempty"`// ForceSendFields is a list of field names (e.g. "Brand") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Brand") to include in API// requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*TestOrderLineItemProduct)MarshalJSON

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

typeTestOrderPaymentMethod

type TestOrderPaymentMethod struct {// ExpirationMonth: The card expiration month (January = 1, February = 2// etc.).ExpirationMonthint64 `json:"expirationMonth,omitempty"`// ExpirationYear: The card expiration year (4-digit, e.g. 2015).ExpirationYearint64 `json:"expirationYear,omitempty"`// LastFourDigits: The last four digits of the card number.LastFourDigitsstring `json:"lastFourDigits,omitempty"`// PredefinedBillingAddress: The billing address.PredefinedBillingAddressstring `json:"predefinedBillingAddress,omitempty"`// Type: The type of instrument. Note that real orders might have// different values than the four values accepted by createTestOrder.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "ExpirationMonth") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExpirationMonth") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*TestOrderPaymentMethod)MarshalJSON

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

typeUnitInvoice

type UnitInvoice struct {// AdditionalCharges: Additional charges for a unit, e.g. shipping// costs.AdditionalCharges []*UnitInvoiceAdditionalCharge `json:"additionalCharges,omitempty"`// Promotions: Promotions applied to a unit.Promotions []*Promotion `json:"promotions,omitempty"`// UnitPricePretax: [required] Price of the unit, before applying taxes.UnitPricePretax *Price `json:"unitPricePretax,omitempty"`// UnitPriceTaxes: Tax amounts to apply to the unit price.UnitPriceTaxes []*UnitInvoiceTaxLine `json:"unitPriceTaxes,omitempty"`// ForceSendFields is a list of field names (e.g. "AdditionalCharges")// to unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdditionalCharges") to// include in API requests with the JSON null value. By default, fields// with empty values are omitted from API requests. However, any field// with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*UnitInvoice)MarshalJSON

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

typeUnitInvoiceAdditionalCharge

type UnitInvoiceAdditionalCharge struct {// AdditionalChargeAmount: [required] Amount of the additional charge.AdditionalChargeAmount *Amount `json:"additionalChargeAmount,omitempty"`// AdditionalChargePromotions: Promotions applied to the additional// charge.AdditionalChargePromotions []*Promotion `json:"additionalChargePromotions,omitempty"`// Type: [required] Type of the additional charge.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g.// "AdditionalChargeAmount") to unconditionally include in API requests.// By default, fields with empty values are omitted from API requests.// However, any non-pointer, non-interface field appearing in// ForceSendFields will be sent to the server regardless of whether the// field is empty or not. This may be used to include empty fields in// Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdditionalChargeAmount")// to include in API requests with the JSON null value. By default,// fields with empty values are omitted from API requests. However, any// field with an empty value appearing in NullFields will be sent to the// server as null. It is an error if a field in this list has a// non-empty value. This may be used to include null fields in Patch// requests.NullFields []string `json:"-"`}

func (*UnitInvoiceAdditionalCharge)MarshalJSON

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

typeUnitInvoiceTaxLine

type UnitInvoiceTaxLine struct {// TaxAmount: [required] Tax amount for the tax type.TaxAmount *Price `json:"taxAmount,omitempty"`// TaxName: Optional name of the tax type. This should only be provided// if taxType is otherFeeTax.TaxNamestring `json:"taxName,omitempty"`// TaxType: [required] Type of the tax.TaxTypestring `json:"taxType,omitempty"`// ForceSendFields is a list of field names (e.g. "TaxAmount") to// unconditionally include in API requests. By default, fields with// empty values are omitted from API requests. However, any non-pointer,// non-interface field appearing in ForceSendFields will be sent to the// server regardless of whether the field is empty or not. This may be// used to include empty fields in Patch requests.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "TaxAmount") to include in// API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. However, any field with an// empty value appearing in NullFields will be sent to the server as// null. It is an error if a field in this list has a non-empty value.// This may be used to include null fields in Patch requests.NullFields []string `json:"-"`}

func (*UnitInvoiceTaxLine)MarshalJSON

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

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp