Documentation ¶
Overview ¶
Package content provides access to the Content API for Shopping.
See https://developers.google.com/shopping-content
Usage example:
import "google.golang.org/api/content/v2sandbox" ... contentService, err := content.New(oauthHttpClient)
Index ¶
- Constants
- type Error
- type Errors
- type Order
- type OrderAddress
- type OrderCancellation
- type OrderCustomer
- type OrderDeliveryDetails
- type OrderLineItem
- type OrderLineItemProduct
- type OrderLineItemProductVariantAttribute
- type OrderLineItemReturnInfo
- type OrderLineItemShippingDetails
- type OrderLineItemShippingDetailsMethod
- type OrderPaymentMethod
- type OrderPromotion
- type OrderPromotionBenefit
- type OrderRefund
- type OrderReturn
- type OrderShipment
- type OrderShipmentLineItemShipment
- type OrdersAcknowledgeCall
- type OrdersAcknowledgeRequest
- type OrdersAcknowledgeResponse
- type OrdersAdvanceTestOrderResponse
- type OrdersAdvancetestorderCall
- type OrdersCancelCall
- type OrdersCancelLineItemRequest
- type OrdersCancelLineItemResponse
- type OrdersCancelRequest
- type OrdersCancelResponse
- type OrdersCancellineitemCall
- type OrdersCreateTestOrderRequest
- type OrdersCreateTestOrderResponse
- type OrdersCreatetestorderCall
- type OrdersCustomBatchRequest
- type OrdersCustomBatchRequestEntry
- type OrdersCustomBatchRequestEntryCancel
- type OrdersCustomBatchRequestEntryCancelLineItem
- type OrdersCustomBatchRequestEntryRefund
- type OrdersCustomBatchRequestEntryReturnLineItem
- type OrdersCustomBatchRequestEntryShipLineItems
- type OrdersCustomBatchRequestEntryUpdateShipment
- type OrdersCustomBatchResponse
- type OrdersCustomBatchResponseEntry
- type OrdersCustombatchCall
- type OrdersGetByMerchantOrderIdResponse
- type OrdersGetCall
- type OrdersGetTestOrderTemplateResponse
- type OrdersGetbymerchantorderidCall
- func (c *OrdersGetbymerchantorderidCall) Context(ctx context.Context) *OrdersGetbymerchantorderidCall
- func (c *OrdersGetbymerchantorderidCall) Do(opts ...googleapi.CallOption) (*OrdersGetByMerchantOrderIdResponse, error)
- func (c *OrdersGetbymerchantorderidCall) Fields(s ...googleapi.Field) *OrdersGetbymerchantorderidCall
- func (c *OrdersGetbymerchantorderidCall) IfNoneMatch(entityTag string) *OrdersGetbymerchantorderidCall
- type OrdersGettestordertemplateCall
- func (c *OrdersGettestordertemplateCall) Context(ctx context.Context) *OrdersGettestordertemplateCall
- func (c *OrdersGettestordertemplateCall) Do(opts ...googleapi.CallOption) (*OrdersGetTestOrderTemplateResponse, error)
- func (c *OrdersGettestordertemplateCall) Fields(s ...googleapi.Field) *OrdersGettestordertemplateCall
- func (c *OrdersGettestordertemplateCall) IfNoneMatch(entityTag string) *OrdersGettestordertemplateCall
- type OrdersListCall
- func (c *OrdersListCall) Acknowledged(acknowledged bool) *OrdersListCall
- func (c *OrdersListCall) Context(ctx context.Context) *OrdersListCall
- func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, error)
- func (c *OrdersListCall) Fields(s ...googleapi.Field) *OrdersListCall
- func (c *OrdersListCall) IfNoneMatch(entityTag string) *OrdersListCall
- func (c *OrdersListCall) MaxResults(maxResults int64) *OrdersListCall
- func (c *OrdersListCall) OrderBy(orderBy string) *OrdersListCall
- func (c *OrdersListCall) PageToken(pageToken string) *OrdersListCall
- func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) error) error
- func (c *OrdersListCall) PlacedDateEnd(placedDateEnd string) *OrdersListCall
- func (c *OrdersListCall) PlacedDateStart(placedDateStart string) *OrdersListCall
- func (c *OrdersListCall) Statuses(statuses ...string) *OrdersListCall
- type OrdersListResponse
- type OrdersRefundCall
- type OrdersRefundRequest
- type OrdersRefundResponse
- type OrdersReturnLineItemRequest
- type OrdersReturnLineItemResponse
- type OrdersReturnlineitemCall
- type OrdersService
- func (r *OrdersService) Acknowledge(merchantId uint64, orderId string, ...) *OrdersAcknowledgeCall
- func (r *OrdersService) Advancetestorder(merchantId uint64, orderId string) *OrdersAdvancetestorderCall
- func (r *OrdersService) Cancel(merchantId uint64, orderId string, orderscancelrequest *OrdersCancelRequest) *OrdersCancelCall
- func (r *OrdersService) Cancellineitem(merchantId uint64, orderId string, ...) *OrdersCancellineitemCall
- func (r *OrdersService) Createtestorder(merchantId uint64, orderscreatetestorderrequest *OrdersCreateTestOrderRequest) *OrdersCreatetestorderCall
- func (r *OrdersService) Custombatch(orderscustombatchrequest *OrdersCustomBatchRequest) *OrdersCustombatchCall
- func (r *OrdersService) Get(merchantId uint64, orderId string) *OrdersGetCall
- func (r *OrdersService) Getbymerchantorderid(merchantId uint64, merchantOrderId string) *OrdersGetbymerchantorderidCall
- func (r *OrdersService) Gettestordertemplate(merchantId uint64, templateName string) *OrdersGettestordertemplateCall
- func (r *OrdersService) List(merchantId uint64) *OrdersListCall
- func (r *OrdersService) Refund(merchantId uint64, orderId string, ordersrefundrequest *OrdersRefundRequest) *OrdersRefundCall
- func (r *OrdersService) Returnlineitem(merchantId uint64, orderId string, ...) *OrdersReturnlineitemCall
- func (r *OrdersService) Shiplineitems(merchantId uint64, orderId string, ...) *OrdersShiplineitemsCall
- func (r *OrdersService) Updatemerchantorderid(merchantId uint64, orderId string, ...) *OrdersUpdatemerchantorderidCall
- func (r *OrdersService) Updateshipment(merchantId uint64, orderId string, ...) *OrdersUpdateshipmentCall
- type OrdersShipLineItemsRequest
- type OrdersShipLineItemsResponse
- type OrdersShiplineitemsCall
- type OrdersUpdateMerchantOrderIdRequest
- type OrdersUpdateMerchantOrderIdResponse
- type OrdersUpdateShipmentRequest
- type OrdersUpdateShipmentResponse
- type OrdersUpdatemerchantorderidCall
- func (c *OrdersUpdatemerchantorderidCall) Context(ctx context.Context) *OrdersUpdatemerchantorderidCall
- func (c *OrdersUpdatemerchantorderidCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateMerchantOrderIdResponse, error)
- func (c *OrdersUpdatemerchantorderidCall) Fields(s ...googleapi.Field) *OrdersUpdatemerchantorderidCall
- type OrdersUpdateshipmentCall
- type Price
- type Service
- type TestOrder
- type TestOrderCustomer
- type TestOrderLineItem
- type TestOrderLineItemProduct
- type TestOrderPaymentMethod
Constants ¶
const (
// Manage your product listings and accounts for Google Shopping
ContentScope = "https://www.googleapis.com/auth/content"
)
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { // Domain: The domain of the error. Domain string `json:"domain,omitempty"` // Message: A description of the error. Message string `json:"message,omitempty"` // Reason: The error code. Reason string `json:"reason,omitempty"` // ForceSendFields is a list of field names (e.g. "Domain") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
Error: An error returned by the API.
func (*Error) MarshalJSON ¶
type Errors ¶
type Errors struct { // Code: The HTTP status of the first error in errors. Code int64 `json:"code,omitempty"` // Errors: A list of errors. Errors []*Error `json:"errors,omitempty"` // Message: The message of the first error in errors. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
Errors: A list of errors returned by a failed batch entry.
func (*Errors) MarshalJSON ¶
type Order ¶
type Order struct { // Acknowledged: Whether the order was acknowledged. Acknowledged bool `json:"acknowledged,omitempty"` // Customer: The details of the customer who placed the order. Customer *OrderCustomer `json:"customer,omitempty"` // DeliveryDetails: The details for the delivery. DeliveryDetails *OrderDeliveryDetails `json:"deliveryDetails,omitempty"` // Id: The REST id of the order. Globally unique. Id string `json:"id,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#order". Kind string `json:"kind,omitempty"` // LineItems: Line items that are ordered. LineItems []*OrderLineItem `json:"lineItems,omitempty"` MerchantId uint64 `json:"merchantId,omitempty,string"` // MerchantOrderId: Merchant-provided id of the order. MerchantOrderId string `json:"merchantOrderId,omitempty"` // NetAmount: The net amount for the order. For example, if an order was // originally for a grand total of $100 and a refund was issued for $20, // the net amount will be $80. NetAmount *Price `json:"netAmount,omitempty"` // PaymentMethod: The details of the payment method. PaymentMethod *OrderPaymentMethod `json:"paymentMethod,omitempty"` // PaymentStatus: The status of the payment. PaymentStatus string `json:"paymentStatus,omitempty"` // PlacedDate: The date when the order was placed, in ISO 8601 format. PlacedDate string `json:"placedDate,omitempty"` // Promotions: The details of the merchant provided promotions applied // to the order. More details about the program are here. Promotions []*OrderPromotion `json:"promotions,omitempty"` // Refunds: Refunds for the order. Refunds []*OrderRefund `json:"refunds,omitempty"` // Shipments: Shipments of the order. Shipments []*OrderShipment `json:"shipments,omitempty"` // ShippingCost: The total cost of shipping for all items. ShippingCost *Price `json:"shippingCost,omitempty"` // ShippingCostTax: The tax for the total shipping cost. ShippingCostTax *Price `json:"shippingCostTax,omitempty"` // ShippingOption: The requested shipping option. ShippingOption string `json:"shippingOption,omitempty"` // Status: The status of the order. Status string `json:"status,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Acknowledged") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*Order) MarshalJSON ¶
type OrderAddress ¶
type OrderAddress struct { // Country: CLDR country code (e.g. "US"). Country string `json:"country,omitempty"` // FullAddress: Strings representing the lines of the printed label for // mailing the order, for example: // John Smith // 1600 Amphitheatre Parkway // Mountain View, CA, 94043 // United States FullAddress []string `json:"fullAddress,omitempty"` // IsPostOfficeBox: Whether the address is a post office box. IsPostOfficeBox bool `json:"isPostOfficeBox,omitempty"` // Locality: City, town or commune. May also include dependent // localities or sublocalities (e.g. neighborhoods or suburbs). Locality string `json:"locality,omitempty"` // PostalCode: Postal Code or ZIP (e.g. "94043"). PostalCode string `json:"postalCode,omitempty"` // RecipientName: Name of the recipient. RecipientName string `json:"recipientName,omitempty"` // Region: Top-level administrative subdivision of the country (e.g. // "CA"). Region string `json:"region,omitempty"` // StreetAddress: Street-level part of the address. StreetAddress []string `json:"streetAddress,omitempty"` // ForceSendFields is a list of field names (e.g. "Country") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrderAddress) MarshalJSON ¶
func (s *OrderAddress) MarshalJSON() ([]byte, error)
type OrderCancellation ¶
type OrderCancellation struct { // Actor: The actor that created the cancellation. Actor string `json:"actor,omitempty"` // CreationDate: Date on which the cancellation has been created, in ISO // 8601 format. CreationDate string `json:"creationDate,omitempty"` // Quantity: The quantity that was canceled. Quantity int64 `json:"quantity,omitempty"` // Reason: The reason for the cancellation. Orders that are cancelled // with a noIventory reason will lead to the removal of the product from // POG until you make an update to that product. This will not affect // your Shopping ads. Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` // ForceSendFields is a list of field names (e.g. "Actor") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrderCancellation) MarshalJSON ¶
func (s *OrderCancellation) MarshalJSON() ([]byte, error)
type OrderCustomer ¶
type OrderCustomer struct { // Email: Email address of the customer. Email string `json:"email,omitempty"` // ExplicitMarketingPreference: If set, this indicates the user // explicitly chose to opt in or out of providing marketing rights to // the merchant. If unset, this indicates the user has already made this // choice in a previous purchase, and was thus not shown the marketing // right opt in/out checkbox during the Purchases on Google checkout // flow. ExplicitMarketingPreference bool `json:"explicitMarketingPreference,omitempty"` // FullName: Full name of the customer. FullName string `json:"fullName,omitempty"` // ForceSendFields is a list of field names (e.g. "Email") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrderCustomer) MarshalJSON ¶
func (s *OrderCustomer) MarshalJSON() ([]byte, error)
type OrderDeliveryDetails ¶
type OrderDeliveryDetails struct { // Address: The delivery address Address *OrderAddress `json:"address,omitempty"` // PhoneNumber: The phone number of the person receiving the delivery. PhoneNumber string `json:"phoneNumber,omitempty"` // ForceSendFields is a list of field names (e.g. "Address") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrderDeliveryDetails) MarshalJSON ¶
func (s *OrderDeliveryDetails) MarshalJSON() ([]byte, error)
type OrderLineItem ¶
type OrderLineItem struct { // Cancellations: Cancellations of the line item. Cancellations []*OrderCancellation `json:"cancellations,omitempty"` // Id: The id of the line item. Id string `json:"id,omitempty"` // Price: Total price for the line item. For example, if two items for // $10 are purchased, the total price will be $20. Price *Price `json:"price,omitempty"` // Product: Product data from the time of the order placement. Product *OrderLineItemProduct `json:"product,omitempty"` // QuantityCanceled: Number of items canceled. QuantityCanceled int64 `json:"quantityCanceled,omitempty"` // QuantityDelivered: Number of items delivered. QuantityDelivered int64 `json:"quantityDelivered,omitempty"` // QuantityOrdered: Number of items ordered. QuantityOrdered int64 `json:"quantityOrdered,omitempty"` // QuantityPending: Number of items pending. QuantityPending int64 `json:"quantityPending,omitempty"` // QuantityReturned: Number of items returned. QuantityReturned int64 `json:"quantityReturned,omitempty"` // QuantityShipped: Number of items shipped. QuantityShipped int64 `json:"quantityShipped,omitempty"` // ReturnInfo: Details of the return policy for the line item. ReturnInfo *OrderLineItemReturnInfo `json:"returnInfo,omitempty"` // Returns: Returns of the line item. Returns []*OrderReturn `json:"returns,omitempty"` // ShippingDetails: Details of the requested shipping for the line item. ShippingDetails *OrderLineItemShippingDetails `json:"shippingDetails,omitempty"` // Tax: Total tax amount for the line item. For example, if two items // are purchased, and each have a cost tax of $2, the total tax amount // will be $4. Tax *Price `json:"tax,omitempty"` // ForceSendFields is a list of field names (e.g. "Cancellations") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrderLineItem) MarshalJSON ¶
func (s *OrderLineItem) MarshalJSON() ([]byte, error)
type OrderLineItemProduct ¶
type OrderLineItemProduct struct { // Brand: Brand of the item. Brand string `json:"brand,omitempty"` // Channel: The item's channel (online or local). Channel string `json:"channel,omitempty"` // Condition: Condition or state of the item. Condition string `json:"condition,omitempty"` // ContentLanguage: The two-letter ISO 639-1 language code for the item. ContentLanguage string `json:"contentLanguage,omitempty"` // Gtin: Global Trade Item Number (GTIN) of the item. Gtin string `json:"gtin,omitempty"` // Id: The REST id of the product. Id string `json:"id,omitempty"` // ImageLink: URL of an image of the item. ImageLink string `json:"imageLink,omitempty"` // ItemGroupId: Shared identifier for all variants of the same product. ItemGroupId string `json:"itemGroupId,omitempty"` // Mpn: Manufacturer Part Number (MPN) of the item. Mpn string `json:"mpn,omitempty"` // OfferId: An identifier of the item. OfferId string `json:"offerId,omitempty"` // Price: Price of the item. Price *Price `json:"price,omitempty"` // ShownImage: URL to the cached image shown to the user when order was // placed. ShownImage string `json:"shownImage,omitempty"` // TargetCountry: The CLDR territory code of the target country of the // product. TargetCountry string `json:"targetCountry,omitempty"` // Title: The title of the product. Title string `json:"title,omitempty"` // VariantAttributes: Variant attributes for the item. These are // dimensions of the product, such as color, gender, material, pattern, // and size. You can find a comprehensive list of variant attributes // here. VariantAttributes []*OrderLineItemProductVariantAttribute `json:"variantAttributes,omitempty"` // ForceSendFields is a list of field names (e.g. "Brand") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrderLineItemProduct) MarshalJSON ¶
func (s *OrderLineItemProduct) MarshalJSON() ([]byte, error)
type OrderLineItemProductVariantAttribute ¶
type OrderLineItemProductVariantAttribute struct { // Dimension: The dimension of the variant. Dimension string `json:"dimension,omitempty"` // Value: The value for the dimension. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Dimension") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrderLineItemProductVariantAttribute) MarshalJSON ¶
func (s *OrderLineItemProductVariantAttribute) MarshalJSON() ([]byte, error)
type OrderLineItemReturnInfo ¶
type OrderLineItemReturnInfo struct { // DaysToReturn: How many days later the item can be returned. DaysToReturn int64 `json:"daysToReturn,omitempty"` // IsReturnable: Whether the item is returnable. IsReturnable bool `json:"isReturnable,omitempty"` // PolicyUrl: URL of the item return policy. PolicyUrl string `json:"policyUrl,omitempty"` // ForceSendFields is a list of field names (e.g. "DaysToReturn") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrderLineItemReturnInfo) MarshalJSON ¶
func (s *OrderLineItemReturnInfo) MarshalJSON() ([]byte, error)
type OrderLineItemShippingDetails ¶
type OrderLineItemShippingDetails struct { // DeliverByDate: The delivery by date, in ISO 8601 format. DeliverByDate string `json:"deliverByDate,omitempty"` // Method: Details of the shipping method. Method *OrderLineItemShippingDetailsMethod `json:"method,omitempty"` // ShipByDate: The ship by date, in ISO 8601 format. ShipByDate string `json:"shipByDate,omitempty"` // ForceSendFields is a list of field names (e.g. "DeliverByDate") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrderLineItemShippingDetails) MarshalJSON ¶
func (s *OrderLineItemShippingDetails) MarshalJSON() ([]byte, error)
type OrderLineItemShippingDetailsMethod ¶
type OrderLineItemShippingDetailsMethod struct { // Carrier: The carrier for the shipping. Optional. Carrier string `json:"carrier,omitempty"` // MaxDaysInTransit: Maximum transit time. MaxDaysInTransit int64 `json:"maxDaysInTransit,omitempty"` // MethodName: The name of the shipping method. MethodName string `json:"methodName,omitempty"` // MinDaysInTransit: Minimum transit time. MinDaysInTransit int64 `json:"minDaysInTransit,omitempty"` // ForceSendFields is a list of field names (e.g. "Carrier") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrderLineItemShippingDetailsMethod) MarshalJSON ¶
func (s *OrderLineItemShippingDetailsMethod) MarshalJSON() ([]byte, error)
type OrderPaymentMethod ¶
type OrderPaymentMethod struct { // BillingAddress: The billing address. BillingAddress *OrderAddress `json:"billingAddress,omitempty"` // ExpirationMonth: The card expiration month (January = 1, February = 2 // etc.). ExpirationMonth int64 `json:"expirationMonth,omitempty"` // ExpirationYear: The card expiration year (4-digit, e.g. 2015). ExpirationYear int64 `json:"expirationYear,omitempty"` // LastFourDigits: The last four digits of the card number. LastFourDigits string `json:"lastFourDigits,omitempty"` // PhoneNumber: The billing phone number. PhoneNumber string `json:"phoneNumber,omitempty"` // Type: The type of instrument (VISA, Mastercard, etc). Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "BillingAddress") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrderPaymentMethod) MarshalJSON ¶
func (s *OrderPaymentMethod) MarshalJSON() ([]byte, error)
type OrderPromotion ¶
type OrderPromotion struct { Benefits []*OrderPromotionBenefit `json:"benefits,omitempty"` // EffectiveDates: The date and time frame when the promotion is active // and ready for validation review. Note that the promotion live time // may be delayed for a few hours due to the validation review. // Start date and end date are separated by a forward slash (/). The // start date is specified by the format (YYYY-MM-DD), followed by the // letter ?T?, the time of the day when the sale starts (in Greenwich // Mean Time, GMT), followed by an expression of the time zone for the // sale. The end date is in the same format. EffectiveDates string `json:"effectiveDates,omitempty"` // GenericRedemptionCode: Optional. The text code that corresponds to // the promotion when applied on the retailer?s website. GenericRedemptionCode string `json:"genericRedemptionCode,omitempty"` // Id: The unique ID of the promotion. Id string `json:"id,omitempty"` // LongTitle: The full title of the promotion. LongTitle string `json:"longTitle,omitempty"` // ProductApplicability: Whether the promotion is applicable to all // products or only specific products. ProductApplicability string `json:"productApplicability,omitempty"` // RedemptionChannel: Indicates that the promotion is valid online. RedemptionChannel string `json:"redemptionChannel,omitempty"` // ForceSendFields is a list of field names (e.g. "Benefits") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrderPromotion) MarshalJSON ¶
func (s *OrderPromotion) MarshalJSON() ([]byte, error)
type OrderPromotionBenefit ¶
type OrderPromotionBenefit struct { // Discount: The discount in the order price when the promotion is // applied. Discount *Price `json:"discount,omitempty"` // OfferIds: The OfferId(s) that were purchased in this order and map to // this specific benefit of the promotion. OfferIds []string `json:"offerIds,omitempty"` // SubType: Further describes the benefit of the promotion. Note that we // will expand on this enumeration as we support new promotion // sub-types. SubType string `json:"subType,omitempty"` // TaxImpact: The impact on tax when the promotion is applied. TaxImpact *Price `json:"taxImpact,omitempty"` // Type: Describes whether the promotion applies to products (e.g. 20% // off) or to shipping (e.g. Free Shipping). Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Discount") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrderPromotionBenefit) MarshalJSON ¶
func (s *OrderPromotionBenefit) MarshalJSON() ([]byte, error)
type OrderRefund ¶
type OrderRefund struct { // Actor: The actor that created the refund. Actor string `json:"actor,omitempty"` // Amount: The amount that is refunded. Amount *Price `json:"amount,omitempty"` // CreationDate: Date on which the item has been created, in ISO 8601 // format. CreationDate string `json:"creationDate,omitempty"` // Reason: The reason for the refund. Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` // ForceSendFields is a list of field names (e.g. "Actor") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrderRefund) MarshalJSON ¶
func (s *OrderRefund) MarshalJSON() ([]byte, error)
type OrderReturn ¶
type OrderReturn struct { // Actor: The actor that created the refund. Actor string `json:"actor,omitempty"` // CreationDate: Date on which the item has been created, in ISO 8601 // format. CreationDate string `json:"creationDate,omitempty"` // Quantity: Quantity that is returned. Quantity int64 `json:"quantity,omitempty"` // Reason: The reason for the return. Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` // ForceSendFields is a list of field names (e.g. "Actor") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrderReturn) MarshalJSON ¶
func (s *OrderReturn) MarshalJSON() ([]byte, error)
type OrderShipment ¶
type OrderShipment struct { // Carrier: The carrier handling the shipment. Carrier string `json:"carrier,omitempty"` // CreationDate: Date on which the shipment has been created, in ISO // 8601 format. CreationDate string `json:"creationDate,omitempty"` // DeliveryDate: Date on which the shipment has been delivered, in ISO // 8601 format. Present only if status is delievered DeliveryDate string `json:"deliveryDate,omitempty"` // Id: The id of the shipment. Id string `json:"id,omitempty"` // LineItems: The line items that are shipped. LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"` // Status: The status of the shipment. Status string `json:"status,omitempty"` // TrackingId: The tracking id for the shipment. TrackingId string `json:"trackingId,omitempty"` // ForceSendFields is a list of field names (e.g. "Carrier") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrderShipment) MarshalJSON ¶
func (s *OrderShipment) MarshalJSON() ([]byte, error)
type OrderShipmentLineItemShipment ¶
type OrderShipmentLineItemShipment struct { // LineItemId: The id of the line item that is shipped. LineItemId string `json:"lineItemId,omitempty"` // Quantity: The quantity that is shipped. Quantity int64 `json:"quantity,omitempty"` // ForceSendFields is a list of field names (e.g. "LineItemId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrderShipmentLineItemShipment) MarshalJSON ¶
func (s *OrderShipmentLineItemShipment) MarshalJSON() ([]byte, error)
type OrdersAcknowledgeCall ¶
type OrdersAcknowledgeCall struct {
// contains filtered or unexported fields
}
func (*OrdersAcknowledgeCall) Context ¶
func (c *OrdersAcknowledgeCall) Context(ctx context.Context) *OrdersAcknowledgeCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrdersAcknowledgeCall) Do ¶
func (c *OrdersAcknowledgeCall) Do(opts ...googleapi.CallOption) (*OrdersAcknowledgeResponse, error)
Do executes the "content.orders.acknowledge" call. Exactly one of *OrdersAcknowledgeResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersAcknowledgeResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrdersAcknowledgeCall) Fields ¶
func (c *OrdersAcknowledgeCall) Fields(s ...googleapi.Field) *OrdersAcknowledgeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type OrdersAcknowledgeRequest ¶
type OrdersAcknowledgeRequest struct { // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // ForceSendFields is a list of field names (e.g. "OperationId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersAcknowledgeRequest) MarshalJSON ¶
func (s *OrdersAcknowledgeRequest) MarshalJSON() ([]byte, error)
type OrdersAcknowledgeResponse ¶
type OrdersAcknowledgeResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersAcknowledgeResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersAcknowledgeResponse) MarshalJSON ¶
func (s *OrdersAcknowledgeResponse) MarshalJSON() ([]byte, error)
type OrdersAdvanceTestOrderResponse ¶
type OrdersAdvanceTestOrderResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersAdvanceTestOrderResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersAdvanceTestOrderResponse) MarshalJSON ¶
func (s *OrdersAdvanceTestOrderResponse) MarshalJSON() ([]byte, error)
type OrdersAdvancetestorderCall ¶
type OrdersAdvancetestorderCall struct {
// contains filtered or unexported fields
}
func (*OrdersAdvancetestorderCall) Context ¶
func (c *OrdersAdvancetestorderCall) Context(ctx context.Context) *OrdersAdvancetestorderCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrdersAdvancetestorderCall) Do ¶
func (c *OrdersAdvancetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersAdvanceTestOrderResponse, error)
Do executes the "content.orders.advancetestorder" call. Exactly one of *OrdersAdvanceTestOrderResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersAdvanceTestOrderResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrdersAdvancetestorderCall) Fields ¶
func (c *OrdersAdvancetestorderCall) Fields(s ...googleapi.Field) *OrdersAdvancetestorderCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type OrdersCancelCall ¶
type OrdersCancelCall struct {
// contains filtered or unexported fields
}
func (*OrdersCancelCall) Context ¶
func (c *OrdersCancelCall) Context(ctx context.Context) *OrdersCancelCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrdersCancelCall) Do ¶
func (c *OrdersCancelCall) Do(opts ...googleapi.CallOption) (*OrdersCancelResponse, error)
Do executes the "content.orders.cancel" call. Exactly one of *OrdersCancelResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersCancelResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrdersCancelCall) Fields ¶
func (c *OrdersCancelCall) Fields(s ...googleapi.Field) *OrdersCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type OrdersCancelLineItemRequest ¶
type OrdersCancelLineItemRequest struct { // Amount: Amount to refund for the cancelation. Optional. If not set, // Google will calculate the default based on the price and tax of the // items involved. The amount must not be larger than the net amount // left on the order. Amount *Price `json:"amount,omitempty"` // LineItemId: The ID of the line item to cancel. LineItemId string `json:"lineItemId,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // Quantity: The quantity to cancel. Quantity int64 `json:"quantity,omitempty"` // Reason: The reason for the cancellation. Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` // ForceSendFields is a list of field names (e.g. "Amount") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersCancelLineItemRequest) MarshalJSON ¶
func (s *OrdersCancelLineItemRequest) MarshalJSON() ([]byte, error)
type OrdersCancelLineItemResponse ¶
type OrdersCancelLineItemResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersCancelLineItemResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersCancelLineItemResponse) MarshalJSON ¶
func (s *OrdersCancelLineItemResponse) MarshalJSON() ([]byte, error)
type OrdersCancelRequest ¶
type OrdersCancelRequest struct { // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // Reason: The reason for the cancellation. Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` // ForceSendFields is a list of field names (e.g. "OperationId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersCancelRequest) MarshalJSON ¶
func (s *OrdersCancelRequest) MarshalJSON() ([]byte, error)
type OrdersCancelResponse ¶
type OrdersCancelResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersCancelResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersCancelResponse) MarshalJSON ¶
func (s *OrdersCancelResponse) MarshalJSON() ([]byte, error)
type OrdersCancellineitemCall ¶
type OrdersCancellineitemCall struct {
// contains filtered or unexported fields
}
func (*OrdersCancellineitemCall) Context ¶
func (c *OrdersCancellineitemCall) Context(ctx context.Context) *OrdersCancellineitemCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrdersCancellineitemCall) Do ¶
func (c *OrdersCancellineitemCall) Do(opts ...googleapi.CallOption) (*OrdersCancelLineItemResponse, error)
Do executes the "content.orders.cancellineitem" call. Exactly one of *OrdersCancelLineItemResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersCancelLineItemResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrdersCancellineitemCall) Fields ¶
func (c *OrdersCancellineitemCall) Fields(s ...googleapi.Field) *OrdersCancellineitemCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type OrdersCreateTestOrderRequest ¶
type OrdersCreateTestOrderRequest struct { // TemplateName: The test order template to use. Specify as an // alternative to testOrder as a shortcut for retrieving a template and // then creating an order using that template. TemplateName string `json:"templateName,omitempty"` // TestOrder: The test order to create. TestOrder *TestOrder `json:"testOrder,omitempty"` // ForceSendFields is a list of field names (e.g. "TemplateName") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersCreateTestOrderRequest) MarshalJSON ¶
func (s *OrdersCreateTestOrderRequest) MarshalJSON() ([]byte, error)
type OrdersCreateTestOrderResponse ¶
type OrdersCreateTestOrderResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersCreateTestOrderResponse". Kind string `json:"kind,omitempty"` // OrderId: The ID of the newly created test order. OrderId string `json:"orderId,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersCreateTestOrderResponse) MarshalJSON ¶
func (s *OrdersCreateTestOrderResponse) MarshalJSON() ([]byte, error)
type OrdersCreatetestorderCall ¶
type OrdersCreatetestorderCall struct {
// contains filtered or unexported fields
}
func (*OrdersCreatetestorderCall) Context ¶
func (c *OrdersCreatetestorderCall) Context(ctx context.Context) *OrdersCreatetestorderCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrdersCreatetestorderCall) Do ¶
func (c *OrdersCreatetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersCreateTestOrderResponse, error)
Do executes the "content.orders.createtestorder" call. Exactly one of *OrdersCreateTestOrderResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersCreateTestOrderResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrdersCreatetestorderCall) Fields ¶
func (c *OrdersCreatetestorderCall) Fields(s ...googleapi.Field) *OrdersCreatetestorderCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type OrdersCustomBatchRequest ¶
type OrdersCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*OrdersCustomBatchRequestEntry `json:"entries,omitempty"` // ForceSendFields is a list of field names (e.g. "Entries") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersCustomBatchRequest) MarshalJSON ¶
func (s *OrdersCustomBatchRequest) MarshalJSON() ([]byte, error)
type OrdersCustomBatchRequestEntry ¶
type OrdersCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // Cancel: Required for cancel method. Cancel *OrdersCustomBatchRequestEntryCancel `json:"cancel,omitempty"` // CancelLineItem: Required for cancelLineItem method. CancelLineItem *OrdersCustomBatchRequestEntryCancelLineItem `json:"cancelLineItem,omitempty"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` // MerchantOrderId: The merchant order id. Required for // updateMerchantOrderId and getByMerchantOrderId methods. MerchantOrderId string `json:"merchantOrderId,omitempty"` // Method: The method to apply. Method string `json:"method,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. Required for all methods beside get and // getByMerchantOrderId. OperationId string `json:"operationId,omitempty"` // OrderId: The ID of the order. Required for all methods beside // getByMerchantOrderId. OrderId string `json:"orderId,omitempty"` // Refund: Required for refund method. Refund *OrdersCustomBatchRequestEntryRefund `json:"refund,omitempty"` // ReturnLineItem: Required for returnLineItem method. ReturnLineItem *OrdersCustomBatchRequestEntryReturnLineItem `json:"returnLineItem,omitempty"` // ShipLineItems: Required for shipLineItems method. ShipLineItems *OrdersCustomBatchRequestEntryShipLineItems `json:"shipLineItems,omitempty"` // UpdateShipment: Required for updateShipment method. UpdateShipment *OrdersCustomBatchRequestEntryUpdateShipment `json:"updateShipment,omitempty"` // ForceSendFields is a list of field names (e.g. "BatchId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersCustomBatchRequestEntry) MarshalJSON ¶
func (s *OrdersCustomBatchRequestEntry) MarshalJSON() ([]byte, error)
type OrdersCustomBatchRequestEntryCancel ¶
type OrdersCustomBatchRequestEntryCancel struct { // Reason: The reason for the cancellation. Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` // ForceSendFields is a list of field names (e.g. "Reason") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersCustomBatchRequestEntryCancel) MarshalJSON ¶
func (s *OrdersCustomBatchRequestEntryCancel) MarshalJSON() ([]byte, error)
type OrdersCustomBatchRequestEntryCancelLineItem ¶
type OrdersCustomBatchRequestEntryCancelLineItem struct { // Amount: Amount to refund for the cancelation. Optional. If not set, // Google will calculate the default based on the price and tax of the // items involved. The amount must not be larger than the net amount // left on the order. Amount *Price `json:"amount,omitempty"` // LineItemId: The ID of the line item to cancel. LineItemId string `json:"lineItemId,omitempty"` // Quantity: The quantity to cancel. Quantity int64 `json:"quantity,omitempty"` // Reason: The reason for the cancellation. Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` // ForceSendFields is a list of field names (e.g. "Amount") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersCustomBatchRequestEntryCancelLineItem) MarshalJSON ¶
func (s *OrdersCustomBatchRequestEntryCancelLineItem) MarshalJSON() ([]byte, error)
type OrdersCustomBatchRequestEntryRefund ¶
type OrdersCustomBatchRequestEntryRefund struct { // Amount: The amount that is refunded. Amount *Price `json:"amount,omitempty"` // Reason: The reason for the refund. Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` // ForceSendFields is a list of field names (e.g. "Amount") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersCustomBatchRequestEntryRefund) MarshalJSON ¶
func (s *OrdersCustomBatchRequestEntryRefund) MarshalJSON() ([]byte, error)
type OrdersCustomBatchRequestEntryReturnLineItem ¶
type OrdersCustomBatchRequestEntryReturnLineItem struct { // LineItemId: The ID of the line item to return. LineItemId string `json:"lineItemId,omitempty"` // Quantity: The quantity to return. Quantity int64 `json:"quantity,omitempty"` // Reason: The reason for the return. Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` // ForceSendFields is a list of field names (e.g. "LineItemId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersCustomBatchRequestEntryReturnLineItem) MarshalJSON ¶
func (s *OrdersCustomBatchRequestEntryReturnLineItem) MarshalJSON() ([]byte, error)
type OrdersCustomBatchRequestEntryShipLineItems ¶
type OrdersCustomBatchRequestEntryShipLineItems struct { // Carrier: The carrier handling the shipment. Carrier string `json:"carrier,omitempty"` // LineItems: Line items to ship. LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"` // ShipmentId: The ID of the shipment. ShipmentId string `json:"shipmentId,omitempty"` // TrackingId: The tracking id for the shipment. TrackingId string `json:"trackingId,omitempty"` // ForceSendFields is a list of field names (e.g. "Carrier") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersCustomBatchRequestEntryShipLineItems) MarshalJSON ¶
func (s *OrdersCustomBatchRequestEntryShipLineItems) MarshalJSON() ([]byte, error)
type OrdersCustomBatchRequestEntryUpdateShipment ¶
type OrdersCustomBatchRequestEntryUpdateShipment struct { // Carrier: The carrier handling the shipment. Not updated if missing. Carrier string `json:"carrier,omitempty"` // ShipmentId: The ID of the shipment. ShipmentId string `json:"shipmentId,omitempty"` // Status: New status for the shipment. Not updated if missing. Status string `json:"status,omitempty"` // TrackingId: The tracking id for the shipment. Not updated if missing. TrackingId string `json:"trackingId,omitempty"` // ForceSendFields is a list of field names (e.g. "Carrier") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersCustomBatchRequestEntryUpdateShipment) MarshalJSON ¶
func (s *OrdersCustomBatchRequestEntryUpdateShipment) MarshalJSON() ([]byte, error)
type OrdersCustomBatchResponse ¶
type OrdersCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*OrdersCustomBatchResponseEntry `json:"entries,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersCustomBatchResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Entries") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersCustomBatchResponse) MarshalJSON ¶
func (s *OrdersCustomBatchResponse) MarshalJSON() ([]byte, error)
type OrdersCustomBatchResponseEntry ¶
type OrdersCustomBatchResponseEntry struct { // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` // ExecutionStatus: The status of the execution. Only defined if the // method is not get or getByMerchantOrderId and if the request was // successful. ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersCustomBatchResponseEntry". Kind string `json:"kind,omitempty"` // Order: The retrieved order. Only defined if the method is get and if // the request was successful. Order *Order `json:"order,omitempty"` // ForceSendFields is a list of field names (e.g. "BatchId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersCustomBatchResponseEntry) MarshalJSON ¶
func (s *OrdersCustomBatchResponseEntry) MarshalJSON() ([]byte, error)
type OrdersCustombatchCall ¶
type OrdersCustombatchCall struct {
// contains filtered or unexported fields
}
func (*OrdersCustombatchCall) Context ¶
func (c *OrdersCustombatchCall) Context(ctx context.Context) *OrdersCustombatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrdersCustombatchCall) Do ¶
func (c *OrdersCustombatchCall) Do(opts ...googleapi.CallOption) (*OrdersCustomBatchResponse, error)
Do executes the "content.orders.custombatch" call. Exactly one of *OrdersCustomBatchResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersCustomBatchResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrdersCustombatchCall) Fields ¶
func (c *OrdersCustombatchCall) Fields(s ...googleapi.Field) *OrdersCustombatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type OrdersGetByMerchantOrderIdResponse ¶
type OrdersGetByMerchantOrderIdResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersGetByMerchantOrderIdResponse". Kind string `json:"kind,omitempty"` // Order: The requested order. Order *Order `json:"order,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersGetByMerchantOrderIdResponse) MarshalJSON ¶
func (s *OrdersGetByMerchantOrderIdResponse) MarshalJSON() ([]byte, error)
type OrdersGetCall ¶
type OrdersGetCall struct {
// contains filtered or unexported fields
}
func (*OrdersGetCall) Context ¶
func (c *OrdersGetCall) Context(ctx context.Context) *OrdersGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrdersGetCall) Do ¶
func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error)
Do executes the "content.orders.get" call. Exactly one of *Order or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Order.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrdersGetCall) Fields ¶
func (c *OrdersGetCall) Fields(s ...googleapi.Field) *OrdersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersGetCall) IfNoneMatch ¶
func (c *OrdersGetCall) IfNoneMatch(entityTag string) *OrdersGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type OrdersGetTestOrderTemplateResponse ¶
type OrdersGetTestOrderTemplateResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersGetTestOrderTemplateResponse". Kind string `json:"kind,omitempty"` // Template: The requested test order template. Template *TestOrder `json:"template,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersGetTestOrderTemplateResponse) MarshalJSON ¶
func (s *OrdersGetTestOrderTemplateResponse) MarshalJSON() ([]byte, error)
type OrdersGetbymerchantorderidCall ¶
type OrdersGetbymerchantorderidCall struct {
// contains filtered or unexported fields
}
func (*OrdersGetbymerchantorderidCall) Context ¶
func (c *OrdersGetbymerchantorderidCall) Context(ctx context.Context) *OrdersGetbymerchantorderidCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrdersGetbymerchantorderidCall) Do ¶
func (c *OrdersGetbymerchantorderidCall) Do(opts ...googleapi.CallOption) (*OrdersGetByMerchantOrderIdResponse, error)
Do executes the "content.orders.getbymerchantorderid" call. Exactly one of *OrdersGetByMerchantOrderIdResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersGetByMerchantOrderIdResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrdersGetbymerchantorderidCall) Fields ¶
func (c *OrdersGetbymerchantorderidCall) Fields(s ...googleapi.Field) *OrdersGetbymerchantorderidCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersGetbymerchantorderidCall) IfNoneMatch ¶
func (c *OrdersGetbymerchantorderidCall) IfNoneMatch(entityTag string) *OrdersGetbymerchantorderidCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type OrdersGettestordertemplateCall ¶
type OrdersGettestordertemplateCall struct {
// contains filtered or unexported fields
}
func (*OrdersGettestordertemplateCall) Context ¶
func (c *OrdersGettestordertemplateCall) Context(ctx context.Context) *OrdersGettestordertemplateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrdersGettestordertemplateCall) Do ¶
func (c *OrdersGettestordertemplateCall) Do(opts ...googleapi.CallOption) (*OrdersGetTestOrderTemplateResponse, error)
Do executes the "content.orders.gettestordertemplate" call. Exactly one of *OrdersGetTestOrderTemplateResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersGetTestOrderTemplateResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrdersGettestordertemplateCall) Fields ¶
func (c *OrdersGettestordertemplateCall) Fields(s ...googleapi.Field) *OrdersGettestordertemplateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersGettestordertemplateCall) IfNoneMatch ¶
func (c *OrdersGettestordertemplateCall) IfNoneMatch(entityTag string) *OrdersGettestordertemplateCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type OrdersListCall ¶
type OrdersListCall struct {
// contains filtered or unexported fields
}
func (*OrdersListCall) Acknowledged ¶
func (c *OrdersListCall) Acknowledged(acknowledged bool) *OrdersListCall
Acknowledged sets the optional parameter "acknowledged": Obtains orders that match the acknowledgement status. When set to true, obtains orders that have been acknowledged. When false, obtains orders that have not been acknowledged. We recommend using this filter set to false, in conjunction with the acknowledge call, such that only un-acknowledged orders are returned.
func (*OrdersListCall) Context ¶
func (c *OrdersListCall) Context(ctx context.Context) *OrdersListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrdersListCall) Do ¶
func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, error)
Do executes the "content.orders.list" call. Exactly one of *OrdersListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrdersListCall) Fields ¶
func (c *OrdersListCall) Fields(s ...googleapi.Field) *OrdersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersListCall) IfNoneMatch ¶
func (c *OrdersListCall) IfNoneMatch(entityTag string) *OrdersListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*OrdersListCall) MaxResults ¶
func (c *OrdersListCall) MaxResults(maxResults int64) *OrdersListCall
MaxResults sets the optional parameter "maxResults": The maximum number of orders to return in the response, used for paging. The default value is 25 orders per page, and the maximum allowed value is 250 orders per page. Known issue: All List calls will return all Orders without limit regardless of the value of this field.
func (*OrdersListCall) OrderBy ¶
func (c *OrdersListCall) OrderBy(orderBy string) *OrdersListCall
OrderBy sets the optional parameter "orderBy": The ordering of the returned list. The only supported value are placedDate desc and placedDate asc for now, which returns orders sorted by placement date. "placedDate desc" stands for listing orders by placement date, from oldest to most recent. "placedDate asc" stands for listing orders by placement date, from most recent to oldest. In future releases we'll support other sorting criteria.
Possible values:
"placedDate asc" "placedDate desc"
func (*OrdersListCall) PageToken ¶
func (c *OrdersListCall) PageToken(pageToken string) *OrdersListCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
func (*OrdersListCall) Pages ¶
func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) error) error
Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.
func (*OrdersListCall) PlacedDateEnd ¶
func (c *OrdersListCall) PlacedDateEnd(placedDateEnd string) *OrdersListCall
PlacedDateEnd sets the optional parameter "placedDateEnd": Obtains orders placed before this date (exclusively), in ISO 8601 format.
func (*OrdersListCall) PlacedDateStart ¶
func (c *OrdersListCall) PlacedDateStart(placedDateStart string) *OrdersListCall
PlacedDateStart sets the optional parameter "placedDateStart": Obtains orders placed after this date (inclusively), in ISO 8601 format.
func (*OrdersListCall) Statuses ¶
func (c *OrdersListCall) Statuses(statuses ...string) *OrdersListCall
Statuses sets the optional parameter "statuses": Obtains orders that match any of the specified statuses. Multiple values can be specified with comma separation. Additionally, please note that active is a shortcut for pendingShipment and partiallyShipped, and completed is a shortcut for shipped , partiallyDelivered, delivered, partiallyReturned, returned, and canceled.
Possible values:
"active" "canceled" "completed" "delivered" "inProgress" "partiallyDelivered" "partiallyReturned" "partiallyShipped" "pendingShipment" "returned" "shipped"
type OrdersListResponse ¶
type OrdersListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersListResponse". Kind string `json:"kind,omitempty"` // NextPageToken: The token for the retrieval of the next page of // orders. NextPageToken string `json:"nextPageToken,omitempty"` Resources []*Order `json:"resources,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersListResponse) MarshalJSON ¶
func (s *OrdersListResponse) MarshalJSON() ([]byte, error)
type OrdersRefundCall ¶
type OrdersRefundCall struct {
// contains filtered or unexported fields
}
func (*OrdersRefundCall) Context ¶
func (c *OrdersRefundCall) Context(ctx context.Context) *OrdersRefundCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrdersRefundCall) Do ¶
func (c *OrdersRefundCall) Do(opts ...googleapi.CallOption) (*OrdersRefundResponse, error)
Do executes the "content.orders.refund" call. Exactly one of *OrdersRefundResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersRefundResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrdersRefundCall) Fields ¶
func (c *OrdersRefundCall) Fields(s ...googleapi.Field) *OrdersRefundCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type OrdersRefundRequest ¶
type OrdersRefundRequest struct { // Amount: The amount that is refunded. Amount *Price `json:"amount,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // Reason: The reason for the refund. Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` // ForceSendFields is a list of field names (e.g. "Amount") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersRefundRequest) MarshalJSON ¶
func (s *OrdersRefundRequest) MarshalJSON() ([]byte, error)
type OrdersRefundResponse ¶
type OrdersRefundResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersRefundResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersRefundResponse) MarshalJSON ¶
func (s *OrdersRefundResponse) MarshalJSON() ([]byte, error)
type OrdersReturnLineItemRequest ¶
type OrdersReturnLineItemRequest struct { // LineItemId: The ID of the line item to return. LineItemId string `json:"lineItemId,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // Quantity: The quantity to return. Quantity int64 `json:"quantity,omitempty"` // Reason: The reason for the return. Reason string `json:"reason,omitempty"` // ReasonText: The explanation of the reason. ReasonText string `json:"reasonText,omitempty"` // ForceSendFields is a list of field names (e.g. "LineItemId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersReturnLineItemRequest) MarshalJSON ¶
func (s *OrdersReturnLineItemRequest) MarshalJSON() ([]byte, error)
type OrdersReturnLineItemResponse ¶
type OrdersReturnLineItemResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersReturnLineItemResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersReturnLineItemResponse) MarshalJSON ¶
func (s *OrdersReturnLineItemResponse) MarshalJSON() ([]byte, error)
type OrdersReturnlineitemCall ¶
type OrdersReturnlineitemCall struct {
// contains filtered or unexported fields
}
func (*OrdersReturnlineitemCall) Context ¶
func (c *OrdersReturnlineitemCall) Context(ctx context.Context) *OrdersReturnlineitemCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrdersReturnlineitemCall) Do ¶
func (c *OrdersReturnlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersReturnLineItemResponse, error)
Do executes the "content.orders.returnlineitem" call. Exactly one of *OrdersReturnLineItemResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersReturnLineItemResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrdersReturnlineitemCall) Fields ¶
func (c *OrdersReturnlineitemCall) Fields(s ...googleapi.Field) *OrdersReturnlineitemCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type OrdersService ¶
type OrdersService struct {
// contains filtered or unexported fields
}
func NewOrdersService ¶
func NewOrdersService(s *Service) *OrdersService
func (*OrdersService) Acknowledge ¶
func (r *OrdersService) Acknowledge(merchantId uint64, orderId string, ordersacknowledgerequest *OrdersAcknowledgeRequest) *OrdersAcknowledgeCall
Acknowledge: Marks an order as acknowledged.
func (*OrdersService) Advancetestorder ¶
func (r *OrdersService) Advancetestorder(merchantId uint64, orderId string) *OrdersAdvancetestorderCall
Advancetestorder: Sandbox only. Moves a test order from state "inProgress" to state "pendingShipment".
func (*OrdersService) Cancel ¶
func (r *OrdersService) Cancel(merchantId uint64, orderId string, orderscancelrequest *OrdersCancelRequest) *OrdersCancelCall
Cancel: Cancels all line items in an order.
func (*OrdersService) Cancellineitem ¶
func (r *OrdersService) Cancellineitem(merchantId uint64, orderId string, orderscancellineitemrequest *OrdersCancelLineItemRequest) *OrdersCancellineitemCall
Cancellineitem: Cancels a line item.
func (*OrdersService) Createtestorder ¶
func (r *OrdersService) Createtestorder(merchantId uint64, orderscreatetestorderrequest *OrdersCreateTestOrderRequest) *OrdersCreatetestorderCall
Createtestorder: Sandbox only. Creates a test order.
func (*OrdersService) Custombatch ¶
func (r *OrdersService) Custombatch(orderscustombatchrequest *OrdersCustomBatchRequest) *OrdersCustombatchCall
Custombatch: Retrieves or modifies multiple orders in a single request.
func (*OrdersService) Get ¶
func (r *OrdersService) Get(merchantId uint64, orderId string) *OrdersGetCall
Get: Retrieves an order from your Merchant Center account.
func (*OrdersService) Getbymerchantorderid ¶
func (r *OrdersService) Getbymerchantorderid(merchantId uint64, merchantOrderId string) *OrdersGetbymerchantorderidCall
Getbymerchantorderid: Retrieves an order using merchant order id.
func (*OrdersService) Gettestordertemplate ¶
func (r *OrdersService) Gettestordertemplate(merchantId uint64, templateName string) *OrdersGettestordertemplateCall
Gettestordertemplate: Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox.
func (*OrdersService) List ¶
func (r *OrdersService) List(merchantId uint64) *OrdersListCall
List: Lists the orders in your Merchant Center account.
func (*OrdersService) Refund ¶
func (r *OrdersService) Refund(merchantId uint64, orderId string, ordersrefundrequest *OrdersRefundRequest) *OrdersRefundCall
Refund: Refund a portion of the order, up to the full amount paid.
func (*OrdersService) Returnlineitem ¶
func (r *OrdersService) Returnlineitem(merchantId uint64, orderId string, ordersreturnlineitemrequest *OrdersReturnLineItemRequest) *OrdersReturnlineitemCall
Returnlineitem: Returns a line item.
func (*OrdersService) Shiplineitems ¶
func (r *OrdersService) Shiplineitems(merchantId uint64, orderId string, ordersshiplineitemsrequest *OrdersShipLineItemsRequest) *OrdersShiplineitemsCall
Shiplineitems: Marks line item(s) as shipped.
func (*OrdersService) Updatemerchantorderid ¶
func (r *OrdersService) Updatemerchantorderid(merchantId uint64, orderId string, ordersupdatemerchantorderidrequest *OrdersUpdateMerchantOrderIdRequest) *OrdersUpdatemerchantorderidCall
Updatemerchantorderid: Updates the merchant order ID for a given order.
func (*OrdersService) Updateshipment ¶
func (r *OrdersService) Updateshipment(merchantId uint64, orderId string, ordersupdateshipmentrequest *OrdersUpdateShipmentRequest) *OrdersUpdateshipmentCall
Updateshipment: Updates a shipment's status, carrier, and/or tracking ID.
type OrdersShipLineItemsRequest ¶
type OrdersShipLineItemsRequest struct { // Carrier: The carrier handling the shipment. Carrier string `json:"carrier,omitempty"` // LineItems: Line items to ship. LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // ShipmentId: The ID of the shipment. ShipmentId string `json:"shipmentId,omitempty"` // TrackingId: The tracking id for the shipment. TrackingId string `json:"trackingId,omitempty"` // ForceSendFields is a list of field names (e.g. "Carrier") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersShipLineItemsRequest) MarshalJSON ¶
func (s *OrdersShipLineItemsRequest) MarshalJSON() ([]byte, error)
type OrdersShipLineItemsResponse ¶
type OrdersShipLineItemsResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersShipLineItemsResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersShipLineItemsResponse) MarshalJSON ¶
func (s *OrdersShipLineItemsResponse) MarshalJSON() ([]byte, error)
type OrdersShiplineitemsCall ¶
type OrdersShiplineitemsCall struct {
// contains filtered or unexported fields
}
func (*OrdersShiplineitemsCall) Context ¶
func (c *OrdersShiplineitemsCall) Context(ctx context.Context) *OrdersShiplineitemsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrdersShiplineitemsCall) Do ¶
func (c *OrdersShiplineitemsCall) Do(opts ...googleapi.CallOption) (*OrdersShipLineItemsResponse, error)
Do executes the "content.orders.shiplineitems" call. Exactly one of *OrdersShipLineItemsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersShipLineItemsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrdersShiplineitemsCall) Fields ¶
func (c *OrdersShiplineitemsCall) Fields(s ...googleapi.Field) *OrdersShiplineitemsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type OrdersUpdateMerchantOrderIdRequest ¶
type OrdersUpdateMerchantOrderIdRequest struct { // MerchantOrderId: The merchant order id to be assigned to the order. // Must be unique per merchant. MerchantOrderId string `json:"merchantOrderId,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // ForceSendFields is a list of field names (e.g. "MerchantOrderId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersUpdateMerchantOrderIdRequest) MarshalJSON ¶
func (s *OrdersUpdateMerchantOrderIdRequest) MarshalJSON() ([]byte, error)
type OrdersUpdateMerchantOrderIdResponse ¶
type OrdersUpdateMerchantOrderIdResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersUpdateMerchantOrderIdResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersUpdateMerchantOrderIdResponse) MarshalJSON ¶
func (s *OrdersUpdateMerchantOrderIdResponse) MarshalJSON() ([]byte, error)
type OrdersUpdateShipmentRequest ¶
type OrdersUpdateShipmentRequest struct { // Carrier: The carrier handling the shipment. Not updated if missing. Carrier string `json:"carrier,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // ShipmentId: The ID of the shipment. ShipmentId string `json:"shipmentId,omitempty"` // Status: New status for the shipment. Not updated if missing. Status string `json:"status,omitempty"` // TrackingId: The tracking id for the shipment. Not updated if missing. TrackingId string `json:"trackingId,omitempty"` // ForceSendFields is a list of field names (e.g. "Carrier") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersUpdateShipmentRequest) MarshalJSON ¶
func (s *OrdersUpdateShipmentRequest) MarshalJSON() ([]byte, error)
type OrdersUpdateShipmentResponse ¶
type OrdersUpdateShipmentResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersUpdateShipmentResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*OrdersUpdateShipmentResponse) MarshalJSON ¶
func (s *OrdersUpdateShipmentResponse) MarshalJSON() ([]byte, error)
type OrdersUpdatemerchantorderidCall ¶
type OrdersUpdatemerchantorderidCall struct {
// contains filtered or unexported fields
}
func (*OrdersUpdatemerchantorderidCall) Context ¶
func (c *OrdersUpdatemerchantorderidCall) Context(ctx context.Context) *OrdersUpdatemerchantorderidCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrdersUpdatemerchantorderidCall) Do ¶
func (c *OrdersUpdatemerchantorderidCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateMerchantOrderIdResponse, error)
Do executes the "content.orders.updatemerchantorderid" call. Exactly one of *OrdersUpdateMerchantOrderIdResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersUpdateMerchantOrderIdResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrdersUpdatemerchantorderidCall) Fields ¶
func (c *OrdersUpdatemerchantorderidCall) Fields(s ...googleapi.Field) *OrdersUpdatemerchantorderidCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type OrdersUpdateshipmentCall ¶
type OrdersUpdateshipmentCall struct {
// contains filtered or unexported fields
}
func (*OrdersUpdateshipmentCall) Context ¶
func (c *OrdersUpdateshipmentCall) Context(ctx context.Context) *OrdersUpdateshipmentCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*OrdersUpdateshipmentCall) Do ¶
func (c *OrdersUpdateshipmentCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateShipmentResponse, error)
Do executes the "content.orders.updateshipment" call. Exactly one of *OrdersUpdateShipmentResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersUpdateShipmentResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*OrdersUpdateshipmentCall) Fields ¶
func (c *OrdersUpdateshipmentCall) Fields(s ...googleapi.Field) *OrdersUpdateshipmentCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type Price ¶
type Price struct { // Currency: The currency of the price. Currency string `json:"currency,omitempty"` // Value: The price represented as a number. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Currency") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*Price) MarshalJSON ¶
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Orders *OrdersService // contains filtered or unexported fields }
type TestOrder ¶
type TestOrder struct { // Customer: The details of the customer who placed the order. Customer *TestOrderCustomer `json:"customer,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#testOrder". Kind string `json:"kind,omitempty"` // LineItems: Line items that are ordered. At least one line item must // be provided. LineItems []*TestOrderLineItem `json:"lineItems,omitempty"` // PaymentMethod: The details of the payment method. PaymentMethod *TestOrderPaymentMethod `json:"paymentMethod,omitempty"` // PredefinedDeliveryAddress: Identifier of one of the predefined // delivery addresses for the delivery. PredefinedDeliveryAddress string `json:"predefinedDeliveryAddress,omitempty"` // Promotions: The details of the merchant provided promotions applied // to the order. More details about the program are here. Promotions []*OrderPromotion `json:"promotions,omitempty"` // ShippingCost: The total cost of shipping for all items. ShippingCost *Price `json:"shippingCost,omitempty"` // ShippingCostTax: The tax for the total shipping cost. ShippingCostTax *Price `json:"shippingCostTax,omitempty"` // ShippingOption: The requested shipping option. ShippingOption string `json:"shippingOption,omitempty"` // ForceSendFields is a list of field names (e.g. "Customer") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*TestOrder) MarshalJSON ¶
type TestOrderCustomer ¶
type TestOrderCustomer struct { // Email: Email address of the customer. Email string `json:"email,omitempty"` // ExplicitMarketingPreference: If set, this indicates the user // explicitly chose to opt in or out of providing marketing rights to // the merchant. If unset, this indicates the user has already made this // choice in a previous purchase, and was thus not shown the marketing // right opt in/out checkbox during the Purchases on Google checkout // flow. Optional. ExplicitMarketingPreference bool `json:"explicitMarketingPreference,omitempty"` // FullName: Full name of the customer. FullName string `json:"fullName,omitempty"` // ForceSendFields is a list of field names (e.g. "Email") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*TestOrderCustomer) MarshalJSON ¶
func (s *TestOrderCustomer) MarshalJSON() ([]byte, error)
type TestOrderLineItem ¶
type TestOrderLineItem struct { // Product: Product data from the time of the order placement. Product *TestOrderLineItemProduct `json:"product,omitempty"` // QuantityOrdered: Number of items ordered. QuantityOrdered int64 `json:"quantityOrdered,omitempty"` // ReturnInfo: Details of the return policy for the line item. ReturnInfo *OrderLineItemReturnInfo `json:"returnInfo,omitempty"` // ShippingDetails: Details of the requested shipping for the line item. ShippingDetails *OrderLineItemShippingDetails `json:"shippingDetails,omitempty"` // UnitTax: Unit tax for the line item. UnitTax *Price `json:"unitTax,omitempty"` // ForceSendFields is a list of field names (e.g. "Product") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*TestOrderLineItem) MarshalJSON ¶
func (s *TestOrderLineItem) MarshalJSON() ([]byte, error)
type TestOrderLineItemProduct ¶
type TestOrderLineItemProduct struct { // Brand: Brand of the item. Brand string `json:"brand,omitempty"` // Channel: The item's channel. Channel string `json:"channel,omitempty"` // Condition: Condition or state of the item. Condition string `json:"condition,omitempty"` // ContentLanguage: The two-letter ISO 639-1 language code for the item. ContentLanguage string `json:"contentLanguage,omitempty"` // Gtin: Global Trade Item Number (GTIN) of the item. Optional. Gtin string `json:"gtin,omitempty"` // ImageLink: URL of an image of the item. ImageLink string `json:"imageLink,omitempty"` // ItemGroupId: Shared identifier for all variants of the same product. // Optional. ItemGroupId string `json:"itemGroupId,omitempty"` // Mpn: Manufacturer Part Number (MPN) of the item. Optional. Mpn string `json:"mpn,omitempty"` // OfferId: An identifier of the item. OfferId string `json:"offerId,omitempty"` // Price: The price for the product. Price *Price `json:"price,omitempty"` // TargetCountry: The CLDR territory code of the target country of the // product. TargetCountry string `json:"targetCountry,omitempty"` // Title: The title of the product. Title string `json:"title,omitempty"` // VariantAttributes: Variant attributes for the item. Optional. VariantAttributes []*OrderLineItemProductVariantAttribute `json:"variantAttributes,omitempty"` // ForceSendFields is a list of field names (e.g. "Brand") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*TestOrderLineItemProduct) MarshalJSON ¶
func (s *TestOrderLineItemProduct) MarshalJSON() ([]byte, error)
type TestOrderPaymentMethod ¶
type TestOrderPaymentMethod struct { // ExpirationMonth: The card expiration month (January = 1, February = 2 // etc.). ExpirationMonth int64 `json:"expirationMonth,omitempty"` // ExpirationYear: The card expiration year (4-digit, e.g. 2015). ExpirationYear int64 `json:"expirationYear,omitempty"` // LastFourDigits: The last four digits of the card number. LastFourDigits string `json:"lastFourDigits,omitempty"` // PredefinedBillingAddress: The billing address. PredefinedBillingAddress string `json:"predefinedBillingAddress,omitempty"` // Type: The type of instrument. Note that real orders might have // different values than the four values accepted by createTestOrder. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "ExpirationMonth") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*TestOrderPaymentMethod) MarshalJSON ¶
func (s *TestOrderPaymentMethod) MarshalJSON() ([]byte, error)