api: google.golang.org/api/content/v2sandbox Index | Files

package content

import "google.golang.org/api/content/v2sandbox"

Package content provides access to the Content API for Shopping.

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

Creating a client

Usage example:

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

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

For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:

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

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

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

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

Index

Package Files

content-gen.go

Constants

const (
    // Manage your product listings and accounts for Google Shopping
    ContentScope = "https://www.googleapis.com/auth/content"
)

OAuth2 scopes used by this API.

type APIService Uses

type APIService struct {
    BasePath  string // API endpoint base URL
    UserAgent string // optional additional User-Agent fragment

    Orderinvoices *OrderinvoicesService

    Orderpayments *OrderpaymentsService

    Orderreturns *OrderreturnsService

    Orders *OrdersService
    // contains filtered or unexported fields
}

func New Uses

func New(client *http.Client) (*APIService, error)

New creates a new APIService. It uses the provided http.Client for requests.

Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

func NewService Uses

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

NewService creates a new APIService.

type Amount Uses

type Amount struct {
    // Pretax: [required] Value before taxes.
    Pretax *Price `json:"pretax,omitempty"`

    // Tax: [required] Tax value.
    Tax *Price `json:"tax,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Pretax") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Pretax") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*Amount) MarshalJSON Uses

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

type CustomerReturnReason Uses

type CustomerReturnReason struct {
    Description string `json:"description,omitempty"`

    ReasonCode string `json:"reasonCode,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Description") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Description") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*CustomerReturnReason) MarshalJSON Uses

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

type Error Uses

type Error struct {
    // Domain: The domain of the error.
    Domain string `json:"domain,omitempty"`

    // Message: A description of the error.
    Message string `json:"message,omitempty"`

    // Reason: The error code.
    Reason string `json:"reason,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Domain") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Domain") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Error: An error returned by the API.

func (*Error) MarshalJSON Uses

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

type Errors Uses

type Errors struct {
    // Code: The HTTP status of the first error in errors.
    Code int64 `json:"code,omitempty"`

    // Errors: A list of errors.
    Errors []*Error `json:"errors,omitempty"`

    // Message: The message of the first error in errors.
    Message string `json:"message,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Code") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Code") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

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

func (*Errors) MarshalJSON Uses

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

type InvoiceSummary Uses

type InvoiceSummary struct {
    // AdditionalChargeSummaries: Summary of the total amounts of the
    // additional charges.
    AdditionalChargeSummaries []*InvoiceSummaryAdditionalChargeSummary `json:"additionalChargeSummaries,omitempty"`

    // CustomerBalance: [required] Customer balance on this invoice. A
    // negative amount means the customer is paying, a positive one means
    // the customer is receiving money. Note: the sum of merchant_balance,
    // customer_balance and google_balance must always be zero.
    //
    // Furthermore the absolute value of this amount is expected to be equal
    // to the sum of product amount and additional charges, minus
    // promotions.
    CustomerBalance *Amount `json:"customerBalance,omitempty"`

    // GoogleBalance: [required] Google balance on this invoice. A negative
    // amount means Google is paying, a positive one means Google is
    // receiving money. Note: the sum of merchant_balance, customer_balance
    // and google_balance must always be zero.
    GoogleBalance *Amount `json:"googleBalance,omitempty"`

    // MerchantBalance: [required] Merchant balance on this invoice. A
    // negative amount means the merchant is paying, a positive one means
    // the merchant is receiving money. Note: the sum of merchant_balance,
    // customer_balance and google_balance must always be zero.
    MerchantBalance *Amount `json:"merchantBalance,omitempty"`

    // ProductTotal: [required] Total price for the product.
    ProductTotal *Amount `json:"productTotal,omitempty"`

    // PromotionSummaries: Summary for each promotion.
    PromotionSummaries []*Promotion `json:"promotionSummaries,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "AdditionalChargeSummaries") to unconditionally include in API
    // requests. By default, fields with empty values are omitted from API
    // requests. However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g.
    // "AdditionalChargeSummaries") to include in API requests with the JSON
    // null value. By default, fields with empty values are omitted from API
    // requests. However, any field with an empty value appearing in
    // NullFields will be sent to the server as null. It is an error if a
    // field in this list has a non-empty value. This may be used to include
    // null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*InvoiceSummary) MarshalJSON Uses

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

type InvoiceSummaryAdditionalChargeSummary Uses

type InvoiceSummaryAdditionalChargeSummary struct {
    // TotalAmount: [required] Total additional charge for this type.
    TotalAmount *Amount `json:"totalAmount,omitempty"`

    // Type: [required] Type of the additional charge.
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "TotalAmount") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "TotalAmount") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*InvoiceSummaryAdditionalChargeSummary) MarshalJSON Uses

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

type MerchantOrderReturn Uses

type MerchantOrderReturn struct {
    CreationDate string `json:"creationDate,omitempty"`

    MerchantOrderId string `json:"merchantOrderId,omitempty"`

    OrderId string `json:"orderId,omitempty"`

    OrderReturnId string `json:"orderReturnId,omitempty"`

    ReturnItems []*MerchantOrderReturnItem `json:"returnItems,omitempty"`

    ReturnShipments []*ReturnShipment `json:"returnShipments,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "CreationDate") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CreationDate") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*MerchantOrderReturn) MarshalJSON Uses

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

type MerchantOrderReturnItem Uses

type MerchantOrderReturnItem struct {
    CustomerReturnReason *CustomerReturnReason `json:"customerReturnReason,omitempty"`

    ItemId string `json:"itemId,omitempty"`

    MerchantReturnReason *RefundReason `json:"merchantReturnReason,omitempty"`

    Product *OrderLineItemProduct `json:"product,omitempty"`

    ReturnShipmentIds []string `json:"returnShipmentIds,omitempty"`

    State string `json:"state,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "CustomerReturnReason") to unconditionally include in API requests.
    // By default, fields with empty values are omitted from API requests.
    // However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CustomerReturnReason") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*MerchantOrderReturnItem) MarshalJSON Uses

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

type Order Uses

type Order struct {
    // Acknowledged: Whether the order was acknowledged.
    Acknowledged bool `json:"acknowledged,omitempty"`

    // ChannelType: The channel type of the order: "purchaseOnGoogle" or
    // "googleExpress".
    ChannelType string `json:"channelType,omitempty"`

    // Customer: The details of the customer who placed the order.
    Customer *OrderCustomer `json:"customer,omitempty"`

    // DeliveryDetails: The details for the delivery.
    DeliveryDetails *OrderDeliveryDetails `json:"deliveryDetails,omitempty"`

    // Id: The REST id of the order. Globally unique.
    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: Deprecated. The details of the merchant provided
    // promotions applied to the order. More details about the program are
    // here.
    Promotions []*OrderLegacyPromotion `json:"promotions,omitempty"`

    // Refunds: Refunds for the order.
    Refunds []*OrderRefund `json:"refunds,omitempty"`

    // Shipments: Shipments of the order.
    Shipments []*OrderShipment `json:"shipments,omitempty"`

    // ShippingCost: The total cost of shipping for all items.
    ShippingCost *Price `json:"shippingCost,omitempty"`

    // ShippingCostTax: The tax for the total shipping cost.
    ShippingCostTax *Price `json:"shippingCostTax,omitempty"`

    // ShippingOption: The requested shipping option.
    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:"-"`

    // NullFields is a list of field names (e.g. "Acknowledged") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*Order) MarshalJSON Uses

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

type OrderAddress Uses

type OrderAddress struct {
    // Country: CLDR country code (e.g. "US").
    Country string `json:"country,omitempty"`

    // FullAddress: Strings representing the lines of the printed label for
    // mailing the order, for example:
    // John Smith
    // 1600 Amphitheatre Parkway
    // Mountain View, CA, 94043
    // United States
    FullAddress []string `json:"fullAddress,omitempty"`

    // IsPostOfficeBox: Whether the address is a post office box.
    IsPostOfficeBox bool `json:"isPostOfficeBox,omitempty"`

    // Locality: City, town or commune. May also include dependent
    // localities or sublocalities (e.g. neighborhoods or suburbs).
    Locality string `json:"locality,omitempty"`

    // PostalCode: Postal Code or ZIP (e.g. "94043").
    PostalCode string `json:"postalCode,omitempty"`

    // RecipientName: Name of the recipient.
    RecipientName string `json:"recipientName,omitempty"`

    // Region: Top-level administrative subdivision of the country. For
    // example, a state like California ("CA") or a province like Quebec
    // ("QC").
    Region string `json:"region,omitempty"`

    // StreetAddress: Street-level part of the address.
    StreetAddress []string `json:"streetAddress,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Country") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Country") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderAddress) MarshalJSON Uses

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

type OrderCancellation Uses

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 noInventory reason will lead to the removal of the product
    // from Shopping Actions until you make an update to that product. This
    // will not affect your Shopping ads.
    Reason string `json:"reason,omitempty"`

    // ReasonText: The explanation of the reason.
    ReasonText string `json:"reasonText,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Actor") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Actor") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderCancellation) MarshalJSON Uses

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

type OrderCustomer Uses

type OrderCustomer struct {
    // Email: Deprecated.
    Email string `json:"email,omitempty"`

    // ExplicitMarketingPreference: Deprecated. Please use
    // marketingRightsInfo instead.
    ExplicitMarketingPreference bool `json:"explicitMarketingPreference,omitempty"`

    // FullName: Full name of the customer.
    FullName string `json:"fullName,omitempty"`

    // MarketingRightsInfo: Customer's marketing preferences.
    MarketingRightsInfo *OrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Email") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Email") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderCustomer) MarshalJSON Uses

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

type OrderCustomerMarketingRightsInfo Uses

type OrderCustomerMarketingRightsInfo struct {
    // ExplicitMarketingPreference: Last known user selection regarding
    // marketing preferences. In certain cases this selection might not be
    // known, so this field would be empty.
    ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"`

    // LastUpdatedTimestamp: Timestamp when last time marketing preference
    // was updated. Could be empty, if user wasn't offered a selection yet.
    LastUpdatedTimestamp string `json:"lastUpdatedTimestamp,omitempty"`

    // MarketingEmailAddress: Email address that can be used for marketing
    // purposes. This field is only filled when explicitMarketingPreference
    // is equal to 'granted'.
    MarketingEmailAddress string `json:"marketingEmailAddress,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "ExplicitMarketingPreference") to unconditionally include in API
    // requests. By default, fields with empty values are omitted from API
    // requests. However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g.
    // "ExplicitMarketingPreference") to include in API requests with the
    // JSON null value. By default, fields with empty values are omitted
    // from API requests. However, any field with an empty value appearing
    // in NullFields will be sent to the server as null. It is an error if a
    // field in this list has a non-empty value. This may be used to include
    // null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderCustomerMarketingRightsInfo) MarshalJSON Uses

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

type OrderDeliveryDetails Uses

type OrderDeliveryDetails struct {
    // Address: The delivery address
    Address *OrderAddress `json:"address,omitempty"`

    // PhoneNumber: The phone number of the person receiving the delivery.
    PhoneNumber string `json:"phoneNumber,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Address") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Address") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderDeliveryDetails) MarshalJSON Uses

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

type OrderLegacyPromotion Uses

type OrderLegacyPromotion struct {
    Benefits []*OrderLegacyPromotionBenefit `json:"benefits,omitempty"`

    // EffectiveDates: The date and time frame when the promotion is active
    // and ready for validation review. Note that the promotion live time
    // may be delayed for a few hours due to the validation review.
    // Start date and end date are separated by a forward slash (/). The
    // start date is specified by the format (YYYY-MM-DD), followed by the
    // letter ?T?, the time of the day when the sale starts (in Greenwich
    // Mean Time, GMT), followed by an expression of the time zone for the
    // sale. The end date is in the same format.
    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:"-"`

    // NullFields is a list of field names (e.g. "Benefits") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderLegacyPromotion) MarshalJSON Uses

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

type OrderLegacyPromotionBenefit Uses

type OrderLegacyPromotionBenefit struct {
    // Discount: The discount in the order price when the promotion is
    // applied.
    Discount *Price `json:"discount,omitempty"`

    // OfferIds: The OfferId(s) that were purchased in this order and map to
    // this specific benefit of the promotion.
    OfferIds []string `json:"offerIds,omitempty"`

    // SubType: Further describes the benefit of the promotion. Note that we
    // will expand on this enumeration as we support new promotion
    // sub-types.
    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:"-"`

    // NullFields is a list of field names (e.g. "Discount") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderLegacyPromotionBenefit) MarshalJSON Uses

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

type OrderLineItem Uses

type OrderLineItem struct {
    // Annotations: Annotations that are attached to the line item.
    Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"`

    // Cancellations: Cancellations of the line item.
    Cancellations []*OrderCancellation `json:"cancellations,omitempty"`

    // Id: The id of the line item.
    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. "Annotations") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Annotations") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderLineItem) MarshalJSON Uses

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

type OrderLineItemProduct Uses

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:"-"`

    // NullFields is a list of field names (e.g. "Brand") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderLineItemProduct) MarshalJSON Uses

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

type OrderLineItemProductVariantAttribute Uses

type OrderLineItemProductVariantAttribute struct {
    // Dimension: The dimension of the variant.
    Dimension string `json:"dimension,omitempty"`

    // Value: The value for the dimension.
    Value string `json:"value,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Dimension") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Dimension") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderLineItemProductVariantAttribute) MarshalJSON Uses

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

type OrderLineItemReturnInfo Uses

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:"-"`

    // NullFields is a list of field names (e.g. "DaysToReturn") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderLineItemReturnInfo) MarshalJSON Uses

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

type OrderLineItemShippingDetails Uses

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:"-"`

    // NullFields is a list of field names (e.g. "DeliverByDate") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderLineItemShippingDetails) MarshalJSON Uses

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

type OrderLineItemShippingDetailsMethod Uses

type OrderLineItemShippingDetailsMethod struct {
    // Carrier: The carrier for the shipping. Optional. See
    // shipments[].carrier for a list of acceptable values.
    Carrier string `json:"carrier,omitempty"`

    // MaxDaysInTransit: 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:"-"`

    // NullFields is a list of field names (e.g. "Carrier") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderLineItemShippingDetailsMethod) MarshalJSON Uses

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

type OrderMerchantProvidedAnnotation Uses

type OrderMerchantProvidedAnnotation struct {
    // Key: Key for additional merchant provided (as key-value pairs)
    // annotation about the line item.
    Key string `json:"key,omitempty"`

    // Value: Value for additional merchant provided (as key-value pairs)
    // annotation about the line item.
    Value string `json:"value,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Key") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Key") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderMerchantProvidedAnnotation) MarshalJSON Uses

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

type OrderPaymentMethod Uses

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.
    //
    // Acceptable values are:
    // - "AMEX"
    // - "DISCOVER"
    // - "JCB"
    // - "MASTERCARD"
    // - "UNIONPAY"
    // - "VISA"
    // - ""
    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:"-"`

    // NullFields is a list of field names (e.g. "BillingAddress") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrderPaymentMethod) MarshalJSON Uses

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

type OrderRefund Uses

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:"-"`

    // NullFields is a list of field names (e.g. "Actor") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderRefund) MarshalJSON Uses

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

type OrderReturn Uses

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:"-"`

    // NullFields is a list of field names (e.g. "Actor") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderReturn) MarshalJSON Uses

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

type OrderShipment Uses

type OrderShipment struct {
    // Carrier: The carrier handling the shipment.
    //
    // Acceptable values are:
    // - "gsx"
    // - "ups"
    // - "usps"
    // - "fedex"
    // - "dhl"
    // - "ecourier"
    // - "cxt"
    // - "google"
    // - "ontrac"
    // - "emsy"
    // - "ont"
    // - "deliv"
    // - "dynamex"
    // - "lasership"
    // - "mpx"
    // - "uds"
    Carrier string `json:"carrier,omitempty"`

    // CreationDate: Date on which the shipment has been created, in ISO
    // 8601 format.
    CreationDate string `json:"creationDate,omitempty"`

    // DeliveryDate: Date on which the shipment has been delivered, in ISO
    // 8601 format. Present only if status is delivered
    DeliveryDate string `json:"deliveryDate,omitempty"`

    // Id: The id of the shipment.
    Id  string `json:"id,omitempty"`

    // LineItems: The line items that are shipped.
    LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"`

    // 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:"-"`

    // NullFields is a list of field names (e.g. "Carrier") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderShipment) MarshalJSON Uses

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

type OrderShipmentLineItemShipment Uses

type OrderShipmentLineItemShipment struct {
    // LineItemId: The id of the line item that is shipped. Either
    // lineItemId or productId is required.
    LineItemId string `json:"lineItemId,omitempty"`

    // ProductId: The ID of the product to ship. This is the REST ID used in
    // the products service. Either lineItemId or productId is required.
    ProductId string `json:"productId,omitempty"`

    // Quantity: The quantity that is shipped.
    Quantity int64 `json:"quantity,omitempty"`

    // ForceSendFields is a list of field names (e.g. "LineItemId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "LineItemId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderShipmentLineItemShipment) MarshalJSON Uses

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

type OrderinvoicesCreateChargeInvoiceRequest Uses

type OrderinvoicesCreateChargeInvoiceRequest struct {
    // InvoiceId: [required] The ID of the invoice.
    InvoiceId string `json:"invoiceId,omitempty"`

    // InvoiceSummary: [required] Invoice summary.
    InvoiceSummary *InvoiceSummary `json:"invoiceSummary,omitempty"`

    // LineItemInvoices: [required] Invoice details per line item.
    LineItemInvoices []*ShipmentInvoiceLineItemInvoice `json:"lineItemInvoices,omitempty"`

    // OperationId: [required] The ID of the operation, unique across all
    // operations for a given order.
    OperationId string `json:"operationId,omitempty"`

    // ShipmentGroupId: [required] ID of the shipment group.
    ShipmentGroupId string `json:"shipmentGroupId,omitempty"`

    // ForceSendFields is a list of field names (e.g. "InvoiceId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "InvoiceId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderinvoicesCreateChargeInvoiceRequest) MarshalJSON Uses

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

type OrderinvoicesCreateChargeInvoiceResponse Uses

type OrderinvoicesCreateChargeInvoiceResponse 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#orderinvoicesCreateChargeInvoiceResponse".
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ExecutionStatus") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrderinvoicesCreateChargeInvoiceResponse) MarshalJSON Uses

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

type OrderinvoicesCreateRefundInvoiceRequest Uses

type OrderinvoicesCreateRefundInvoiceRequest struct {
    // InvoiceId: [required] The ID of the invoice.
    InvoiceId string `json:"invoiceId,omitempty"`

    // OperationId: [required] The ID of the operation, unique across all
    // operations for a given order.
    OperationId string `json:"operationId,omitempty"`

    // RefundOnlyOption: Option to create a refund-only invoice. Exactly one
    // of refundOnlyOption or returnOption must be provided.
    RefundOnlyOption *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption `json:"refundOnlyOption,omitempty"`

    // ReturnOption: Option to create an invoice for a refund and mark all
    // items within the invoice as returned. Exactly one of refundOnlyOption
    // or returnOption must be provided.
    ReturnOption *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption `json:"returnOption,omitempty"`

    // ShipmentInvoices: Invoice details for different shipment groups.
    ShipmentInvoices []*ShipmentInvoice `json:"shipmentInvoices,omitempty"`

    // ForceSendFields is a list of field names (e.g. "InvoiceId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "InvoiceId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderinvoicesCreateRefundInvoiceRequest) MarshalJSON Uses

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

type OrderinvoicesCreateRefundInvoiceResponse Uses

type OrderinvoicesCreateRefundInvoiceResponse 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#orderinvoicesCreateRefundInvoiceResponse".
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ExecutionStatus") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrderinvoicesCreateRefundInvoiceResponse) MarshalJSON Uses

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

type OrderinvoicesCreatechargeinvoiceCall Uses

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

func (*OrderinvoicesCreatechargeinvoiceCall) Context Uses

func (c *OrderinvoicesCreatechargeinvoiceCall) Context(ctx context.Context) *OrderinvoicesCreatechargeinvoiceCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrderinvoicesCreatechargeinvoiceCall) Do Uses

func (c *OrderinvoicesCreatechargeinvoiceCall) Do(opts ...googleapi.CallOption) (*OrderinvoicesCreateChargeInvoiceResponse, error)

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

func (*OrderinvoicesCreatechargeinvoiceCall) Fields Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrderinvoicesCreatechargeinvoiceCall) Header Uses

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

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

type OrderinvoicesCreaterefundinvoiceCall Uses

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

func (*OrderinvoicesCreaterefundinvoiceCall) Context Uses

func (c *OrderinvoicesCreaterefundinvoiceCall) Context(ctx context.Context) *OrderinvoicesCreaterefundinvoiceCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrderinvoicesCreaterefundinvoiceCall) Do Uses

func (c *OrderinvoicesCreaterefundinvoiceCall) Do(opts ...googleapi.CallOption) (*OrderinvoicesCreateRefundInvoiceResponse, error)

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

func (*OrderinvoicesCreaterefundinvoiceCall) Fields Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrderinvoicesCreaterefundinvoiceCall) Header Uses

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

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

type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption Uses

type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption struct {
    // Description: Optional description of the refund reason.
    Description string `json:"description,omitempty"`

    // Reason: [required] Reason for the refund.
    Reason string `json:"reason,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Description") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Description") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption) MarshalJSON Uses

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

type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption Uses

type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption struct {
    // Description: Optional description of the return reason.
    Description string `json:"description,omitempty"`

    // Reason: [required] Reason for the return.
    Reason string `json:"reason,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Description") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Description") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption) MarshalJSON Uses

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

type OrderinvoicesService Uses

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

func NewOrderinvoicesService Uses

func NewOrderinvoicesService(s *APIService) *OrderinvoicesService

func (*OrderinvoicesService) Createchargeinvoice Uses

func (r *OrderinvoicesService) Createchargeinvoice(merchantId uint64, orderId string, orderinvoicescreatechargeinvoicerequest *OrderinvoicesCreateChargeInvoiceRequest) *OrderinvoicesCreatechargeinvoiceCall

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

func (*OrderinvoicesService) Createrefundinvoice Uses

func (r *OrderinvoicesService) Createrefundinvoice(merchantId uint64, orderId string, orderinvoicescreaterefundinvoicerequest *OrderinvoicesCreateRefundInvoiceRequest) *OrderinvoicesCreaterefundinvoiceCall

Createrefundinvoice: Creates a refund invoice for one or more shipment groups, and triggers a refund for non-facilitated payment orders. This can only be used for line items that have previously been charged using createChargeInvoice. All amounts (except for the summary) are incremental with respect to the previous invoice.

type OrderpaymentsNotifyAuthApprovedRequest Uses

type OrderpaymentsNotifyAuthApprovedRequest struct {
    AuthAmountPretax *Price `json:"authAmountPretax,omitempty"`

    AuthAmountTax *Price `json:"authAmountTax,omitempty"`

    // ForceSendFields is a list of field names (e.g. "AuthAmountPretax") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AuthAmountPretax") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrderpaymentsNotifyAuthApprovedRequest) MarshalJSON Uses

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

type OrderpaymentsNotifyAuthApprovedResponse Uses

type OrderpaymentsNotifyAuthApprovedResponse 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#orderpaymentsNotifyAuthApprovedResponse".
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ExecutionStatus") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrderpaymentsNotifyAuthApprovedResponse) MarshalJSON Uses

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

type OrderpaymentsNotifyAuthDeclinedRequest Uses

type OrderpaymentsNotifyAuthDeclinedRequest struct {
    // DeclineReason: Reason why payment authorization was declined.
    DeclineReason string `json:"declineReason,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DeclineReason") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DeclineReason") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderpaymentsNotifyAuthDeclinedRequest) MarshalJSON Uses

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

type OrderpaymentsNotifyAuthDeclinedResponse Uses

type OrderpaymentsNotifyAuthDeclinedResponse 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#orderpaymentsNotifyAuthDeclinedResponse".
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ExecutionStatus") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrderpaymentsNotifyAuthDeclinedResponse) MarshalJSON Uses

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

type OrderpaymentsNotifyChargeRequest Uses

type OrderpaymentsNotifyChargeRequest struct {
    // ChargeState: Whether charge was successful.
    ChargeState string `json:"chargeState,omitempty"`

    // InvoiceId: Deprecated. Please use invoiceIds instead.
    InvoiceId string `json:"invoiceId,omitempty"`

    // InvoiceIds: Invoice IDs from the orderinvoices service that
    // correspond to the charge.
    InvoiceIds []string `json:"invoiceIds,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ChargeState") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ChargeState") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderpaymentsNotifyChargeRequest) MarshalJSON Uses

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

type OrderpaymentsNotifyChargeResponse Uses

type OrderpaymentsNotifyChargeResponse 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#orderpaymentsNotifyChargeResponse".
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ExecutionStatus") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrderpaymentsNotifyChargeResponse) MarshalJSON Uses

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

type OrderpaymentsNotifyRefundRequest Uses

type OrderpaymentsNotifyRefundRequest struct {
    // InvoiceId: Deprecated. Please use invoiceIds instead.
    InvoiceId string `json:"invoiceId,omitempty"`

    // InvoiceIds: Invoice IDs from the orderinvoices service that
    // correspond to the refund.
    InvoiceIds []string `json:"invoiceIds,omitempty"`

    // RefundState: Whether refund was successful.
    RefundState string `json:"refundState,omitempty"`

    // ForceSendFields is a list of field names (e.g. "InvoiceId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "InvoiceId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderpaymentsNotifyRefundRequest) MarshalJSON Uses

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

type OrderpaymentsNotifyRefundResponse Uses

type OrderpaymentsNotifyRefundResponse 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#orderpaymentsNotifyRefundResponse".
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ExecutionStatus") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrderpaymentsNotifyRefundResponse) MarshalJSON Uses

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

type OrderpaymentsNotifyauthapprovedCall Uses

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

func (*OrderpaymentsNotifyauthapprovedCall) Context Uses

func (c *OrderpaymentsNotifyauthapprovedCall) Context(ctx context.Context) *OrderpaymentsNotifyauthapprovedCall

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 (*OrderpaymentsNotifyauthapprovedCall) Do Uses

func (c *OrderpaymentsNotifyauthapprovedCall) Do(opts ...googleapi.CallOption) (*OrderpaymentsNotifyAuthApprovedResponse, error)

Do executes the "content.orderpayments.notifyauthapproved" call. Exactly one of *OrderpaymentsNotifyAuthApprovedResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrderpaymentsNotifyAuthApprovedResponse.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 (*OrderpaymentsNotifyauthapprovedCall) Fields Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrderpaymentsNotifyauthapprovedCall) Header Uses

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

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

type OrderpaymentsNotifyauthdeclinedCall Uses

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

func (*OrderpaymentsNotifyauthdeclinedCall) Context Uses

func (c *OrderpaymentsNotifyauthdeclinedCall) Context(ctx context.Context) *OrderpaymentsNotifyauthdeclinedCall

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 (*OrderpaymentsNotifyauthdeclinedCall) Do Uses

func (c *OrderpaymentsNotifyauthdeclinedCall) Do(opts ...googleapi.CallOption) (*OrderpaymentsNotifyAuthDeclinedResponse, error)

Do executes the "content.orderpayments.notifyauthdeclined" call. Exactly one of *OrderpaymentsNotifyAuthDeclinedResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrderpaymentsNotifyAuthDeclinedResponse.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 (*OrderpaymentsNotifyauthdeclinedCall) Fields Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrderpaymentsNotifyauthdeclinedCall) Header Uses

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

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

type OrderpaymentsNotifychargeCall Uses

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

func (*OrderpaymentsNotifychargeCall) Context Uses

func (c *OrderpaymentsNotifychargeCall) Context(ctx context.Context) *OrderpaymentsNotifychargeCall

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 (*OrderpaymentsNotifychargeCall) Do Uses

func (c *OrderpaymentsNotifychargeCall) Do(opts ...googleapi.CallOption) (*OrderpaymentsNotifyChargeResponse, error)

Do executes the "content.orderpayments.notifycharge" call. Exactly one of *OrderpaymentsNotifyChargeResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrderpaymentsNotifyChargeResponse.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 (*OrderpaymentsNotifychargeCall) Fields Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrderpaymentsNotifychargeCall) Header Uses

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

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

type OrderpaymentsNotifyrefundCall Uses

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

func (*OrderpaymentsNotifyrefundCall) Context Uses

func (c *OrderpaymentsNotifyrefundCall) Context(ctx context.Context) *OrderpaymentsNotifyrefundCall

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 (*OrderpaymentsNotifyrefundCall) Do Uses

func (c *OrderpaymentsNotifyrefundCall) Do(opts ...googleapi.CallOption) (*OrderpaymentsNotifyRefundResponse, error)

Do executes the "content.orderpayments.notifyrefund" call. Exactly one of *OrderpaymentsNotifyRefundResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrderpaymentsNotifyRefundResponse.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 (*OrderpaymentsNotifyrefundCall) Fields Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrderpaymentsNotifyrefundCall) Header Uses

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

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

type OrderpaymentsService Uses

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

func NewOrderpaymentsService Uses

func NewOrderpaymentsService(s *APIService) *OrderpaymentsService

func (*OrderpaymentsService) Notifyauthapproved Uses

func (r *OrderpaymentsService) Notifyauthapproved(merchantId uint64, orderId string, orderpaymentsnotifyauthapprovedrequest *OrderpaymentsNotifyAuthApprovedRequest) *OrderpaymentsNotifyauthapprovedCall

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

func (*OrderpaymentsService) Notifyauthdeclined Uses

func (r *OrderpaymentsService) Notifyauthdeclined(merchantId uint64, orderId string, orderpaymentsnotifyauthdeclinedrequest *OrderpaymentsNotifyAuthDeclinedRequest) *OrderpaymentsNotifyauthdeclinedCall

Notifyauthdeclined: Notify about failure to authorize user's payment method.

func (*OrderpaymentsService) Notifycharge Uses

func (r *OrderpaymentsService) Notifycharge(merchantId uint64, orderId string, orderpaymentsnotifychargerequest *OrderpaymentsNotifyChargeRequest) *OrderpaymentsNotifychargeCall

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

func (*OrderpaymentsService) Notifyrefund Uses

func (r *OrderpaymentsService) Notifyrefund(merchantId uint64, orderId string, orderpaymentsnotifyrefundrequest *OrderpaymentsNotifyRefundRequest) *OrderpaymentsNotifyrefundCall

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

type OrderreturnsGetCall Uses

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

func (*OrderreturnsGetCall) Context Uses

func (c *OrderreturnsGetCall) Context(ctx context.Context) *OrderreturnsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrderreturnsGetCall) Do Uses

func (c *OrderreturnsGetCall) Do(opts ...googleapi.CallOption) (*MerchantOrderReturn, error)

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

func (*OrderreturnsGetCall) Fields Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrderreturnsGetCall) Header Uses

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

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

func (*OrderreturnsGetCall) IfNoneMatch Uses

func (c *OrderreturnsGetCall) IfNoneMatch(entityTag string) *OrderreturnsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type OrderreturnsListCall Uses

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

func (*OrderreturnsListCall) Context Uses

func (c *OrderreturnsListCall) Context(ctx context.Context) *OrderreturnsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrderreturnsListCall) CreatedEndDate Uses

func (c *OrderreturnsListCall) CreatedEndDate(createdEndDate string) *OrderreturnsListCall

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

func (*OrderreturnsListCall) CreatedStartDate Uses

func (c *OrderreturnsListCall) CreatedStartDate(createdStartDate string) *OrderreturnsListCall

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

func (*OrderreturnsListCall) Do Uses

func (c *OrderreturnsListCall) Do(opts ...googleapi.CallOption) (*OrderreturnsListResponse, error)

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

func (*OrderreturnsListCall) Fields Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrderreturnsListCall) Header Uses

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

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

func (*OrderreturnsListCall) IfNoneMatch Uses

func (c *OrderreturnsListCall) IfNoneMatch(entityTag string) *OrderreturnsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*OrderreturnsListCall) MaxResults Uses

func (c *OrderreturnsListCall) MaxResults(maxResults int64) *OrderreturnsListCall

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

func (*OrderreturnsListCall) OrderBy Uses

func (c *OrderreturnsListCall) OrderBy(orderBy string) *OrderreturnsListCall

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

Possible values:

"returnCreationTimeAsc"
"returnCreationTimeDesc"

func (*OrderreturnsListCall) PageToken Uses

func (c *OrderreturnsListCall) PageToken(pageToken string) *OrderreturnsListCall

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

func (*OrderreturnsListCall) Pages Uses

func (c *OrderreturnsListCall) Pages(ctx context.Context, f func(*OrderreturnsListResponse) error) error

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

type OrderreturnsListResponse Uses

type OrderreturnsListResponse struct {
    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#orderreturnsListResponse".
    Kind string `json:"kind,omitempty"`

    // NextPageToken: The token for the retrieval of the next page of
    // returns.
    NextPageToken string `json:"nextPageToken,omitempty"`

    Resources []*MerchantOrderReturn `json:"resources,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Kind") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Kind") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrderreturnsListResponse) MarshalJSON Uses

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

type OrderreturnsService Uses

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

func NewOrderreturnsService Uses

func NewOrderreturnsService(s *APIService) *OrderreturnsService

func (*OrderreturnsService) Get Uses

func (r *OrderreturnsService) Get(merchantId uint64, returnId string) *OrderreturnsGetCall

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

func (*OrderreturnsService) List Uses

func (r *OrderreturnsService) List(merchantId uint64) *OrderreturnsListCall

List: Lists order returns in your Merchant Center account.

type OrdersAcknowledgeCall Uses

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

func (*OrdersAcknowledgeCall) Context Uses

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 Uses

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 Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrdersAcknowledgeCall) Header Uses

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

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

type OrdersAcknowledgeRequest Uses

type OrdersAcknowledgeRequest struct {
    // OperationId: The ID of the operation. Unique across all operations
    // for a given order.
    OperationId string `json:"operationId,omitempty"`

    // ForceSendFields is a list of field names (e.g. "OperationId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "OperationId") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersAcknowledgeRequest) MarshalJSON Uses

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

type OrdersAcknowledgeResponse Uses

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:"-"`

    // NullFields is a list of field names (e.g. "ExecutionStatus") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrdersAcknowledgeResponse) MarshalJSON Uses

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

type OrdersAdvanceTestOrderResponse Uses

type OrdersAdvanceTestOrderResponse struct {
    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#ordersAdvanceTestOrderResponse".
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Kind") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Kind") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersAdvanceTestOrderResponse) MarshalJSON Uses

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

type OrdersAdvancetestorderCall Uses

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

func (*OrdersAdvancetestorderCall) Context Uses

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 Uses

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 Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrdersAdvancetestorderCall) Header Uses

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

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

type OrdersCancelCall Uses

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

func (*OrdersCancelCall) Context Uses

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 Uses

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 Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrdersCancelCall) Header Uses

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

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

type OrdersCancelLineItemRequest Uses

type OrdersCancelLineItemRequest struct {
    // Amount: Deprecated. Please use amountPretax and amountTax instead.
    Amount *Price `json:"amount,omitempty"`

    // AmountPretax: Amount to refund for the cancelation. Optional. If not
    // set, Google will calculate the default based on the price and tax of
    // the items involved. The amount must not be larger than the net amount
    // left on the order.
    AmountPretax *Price `json:"amountPretax,omitempty"`

    // AmountTax: Tax amount that correspond to cancellation amount in
    // amountPretax.
    AmountTax *Price `json:"amountTax,omitempty"`

    // LineItemId: The ID of the line item to cancel. Either lineItemId or
    // productId is required.
    LineItemId string `json:"lineItemId,omitempty"`

    // OperationId: The ID of the operation. Unique across all operations
    // for a given order.
    OperationId string `json:"operationId,omitempty"`

    // ProductId: The ID of the product to cancel. This is the REST ID used
    // in the products service. Either lineItemId or productId is required.
    ProductId string `json:"productId,omitempty"`

    // Quantity: The quantity to cancel.
    Quantity int64 `json:"quantity,omitempty"`

    // Reason: The reason for the cancellation.
    Reason string `json:"reason,omitempty"`

    // ReasonText: The explanation of the reason.
    ReasonText string `json:"reasonText,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Amount") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Amount") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCancelLineItemRequest) MarshalJSON Uses

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

type OrdersCancelLineItemResponse Uses

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:"-"`

    // NullFields is a list of field names (e.g. "ExecutionStatus") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrdersCancelLineItemResponse) MarshalJSON Uses

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

type OrdersCancelRequest Uses

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:"-"`

    // NullFields is a list of field names (e.g. "OperationId") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCancelRequest) MarshalJSON Uses

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

type OrdersCancelResponse Uses

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:"-"`

    // NullFields is a list of field names (e.g. "ExecutionStatus") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrdersCancelResponse) MarshalJSON Uses

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

type OrdersCancelTestOrderByCustomerRequest Uses

type OrdersCancelTestOrderByCustomerRequest struct {
    // Reason: The reason for the cancellation.
    Reason string `json:"reason,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Reason") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Reason") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCancelTestOrderByCustomerRequest) MarshalJSON Uses

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

type OrdersCancelTestOrderByCustomerResponse Uses

type OrdersCancelTestOrderByCustomerResponse struct {
    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#ordersCancelTestOrderByCustomerResponse".
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Kind") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Kind") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCancelTestOrderByCustomerResponse) MarshalJSON Uses

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

type OrdersCancellineitemCall Uses

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

func (*OrdersCancellineitemCall) Context Uses

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 Uses

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 Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrdersCancellineitemCall) Header Uses

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

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

type OrdersCanceltestorderbycustomerCall Uses

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

func (*OrdersCanceltestorderbycustomerCall) Context Uses

func (c *OrdersCanceltestorderbycustomerCall) Context(ctx context.Context) *OrdersCanceltestorderbycustomerCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrdersCanceltestorderbycustomerCall) Do Uses

func (c *OrdersCanceltestorderbycustomerCall) Do(opts ...googleapi.CallOption) (*OrdersCancelTestOrderByCustomerResponse, error)

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

func (*OrdersCanceltestorderbycustomerCall) Fields Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrdersCanceltestorderbycustomerCall) Header Uses

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

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

type OrdersCreateTestOrderRequest Uses

type OrdersCreateTestOrderRequest struct {
    // Country: The  CLDR territory code of the country of the test order to
    // create. Affects the currency and addresses of orders created via
    // template_name, or the addresses of orders created via
    // test_order.
    //
    // Acceptable values are:
    // - "US"
    // - "FR"  Defaults to US.
    Country string `json:"country,omitempty"`

    // TemplateName: The test order template to use. Specify as an
    // alternative to testOrder as a shortcut for retrieving a template and
    // then creating an order using that template.
    TemplateName string `json:"templateName,omitempty"`

    // TestOrder: The test order to create.
    TestOrder *TestOrder `json:"testOrder,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Country") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Country") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCreateTestOrderRequest) MarshalJSON Uses

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

type OrdersCreateTestOrderResponse Uses

type OrdersCreateTestOrderResponse struct {
    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#ordersCreateTestOrderResponse".
    Kind string `json:"kind,omitempty"`

    // OrderId: The ID of the newly created test order.
    OrderId string `json:"orderId,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Kind") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Kind") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCreateTestOrderResponse) MarshalJSON Uses

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

type OrdersCreateTestReturnRequest Uses

type OrdersCreateTestReturnRequest struct {
    // Items: Returned items.
    Items []*OrdersCustomBatchRequestEntryCreateTestReturnReturnItem `json:"items,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Items") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Items") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCreateTestReturnRequest) MarshalJSON Uses

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

type OrdersCreateTestReturnResponse Uses

type OrdersCreateTestReturnResponse struct {
    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#ordersCreateTestReturnResponse".
    Kind string `json:"kind,omitempty"`

    // ReturnId: The ID of the newly created test order return.
    ReturnId string `json:"returnId,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Kind") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Kind") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCreateTestReturnResponse) MarshalJSON Uses

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

type OrdersCreatetestorderCall Uses

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

func (*OrdersCreatetestorderCall) Context Uses

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 Uses

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 Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrdersCreatetestorderCall) Header Uses

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

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

type OrdersCreatetestreturnCall Uses

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

func (*OrdersCreatetestreturnCall) Context Uses

func (c *OrdersCreatetestreturnCall) Context(ctx context.Context) *OrdersCreatetestreturnCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrdersCreatetestreturnCall) Do Uses

func (c *OrdersCreatetestreturnCall) Do(opts ...googleapi.CallOption) (*OrdersCreateTestReturnResponse, error)

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

func (*OrdersCreatetestreturnCall) Fields Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrdersCreatetestreturnCall) Header Uses

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

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

type OrdersCustomBatchRequest Uses

type OrdersCustomBatchRequest struct {
    // Entries: The request entries to be processed in the batch.
    Entries []*OrdersCustomBatchRequestEntry `json:"entries,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Entries") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Entries") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCustomBatchRequest) MarshalJSON Uses

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

type OrdersCustomBatchRequestEntry Uses

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"`

    // InStoreRefundLineItem: Required for inStoreReturnLineItem method.
    InStoreRefundLineItem *OrdersCustomBatchRequestEntryInStoreRefundLineItem `json:"inStoreRefundLineItem,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"`

    // RejectReturnLineItem: Required for rejectReturnLineItem method.
    RejectReturnLineItem *OrdersCustomBatchRequestEntryRejectReturnLineItem `json:"rejectReturnLineItem,omitempty"`

    // ReturnLineItem: Required for returnLineItem method.
    ReturnLineItem *OrdersCustomBatchRequestEntryReturnLineItem `json:"returnLineItem,omitempty"`

    // ReturnRefundLineItem: Required for returnRefundLineItem method.
    ReturnRefundLineItem *OrdersCustomBatchRequestEntryReturnRefundLineItem `json:"returnRefundLineItem,omitempty"`

    // SetLineItemMetadata: Required for setLineItemMetadata method.
    SetLineItemMetadata *OrdersCustomBatchRequestEntrySetLineItemMetadata `json:"setLineItemMetadata,omitempty"`

    // ShipLineItems: Required for shipLineItems method.
    ShipLineItems *OrdersCustomBatchRequestEntryShipLineItems `json:"shipLineItems,omitempty"`

    // UpdateLineItemShippingDetails: Required for
    // updateLineItemShippingDate method.
    UpdateLineItemShippingDetails *OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails `json:"updateLineItemShippingDetails,omitempty"`

    // UpdateShipment: Required for updateShipment method.
    UpdateShipment *OrdersCustomBatchRequestEntryUpdateShipment `json:"updateShipment,omitempty"`

    // ForceSendFields is a list of field names (e.g. "BatchId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "BatchId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCustomBatchRequestEntry) MarshalJSON Uses

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

type OrdersCustomBatchRequestEntryCancel Uses

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:"-"`

    // NullFields is a list of field names (e.g. "Reason") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCustomBatchRequestEntryCancel) MarshalJSON Uses

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

type OrdersCustomBatchRequestEntryCancelLineItem Uses

type OrdersCustomBatchRequestEntryCancelLineItem struct {
    // Amount: Deprecated. Please use amountPretax and amountTax instead.
    Amount *Price `json:"amount,omitempty"`

    // AmountPretax: Amount to refund for the cancelation. Optional. If not
    // set, Google will calculate the default based on the price and tax of
    // the items involved. The amount must not be larger than the net amount
    // left on the order.
    AmountPretax *Price `json:"amountPretax,omitempty"`

    // AmountTax: Tax amount that correspond to cancellation amount in
    // amountPretax.
    AmountTax *Price `json:"amountTax,omitempty"`

    // LineItemId: The ID of the line item to cancel. Either lineItemId or
    // productId is required.
    LineItemId string `json:"lineItemId,omitempty"`

    // ProductId: The ID of the product to cancel. This is the REST ID used
    // in the products service. Either lineItemId or productId is required.
    ProductId string `json:"productId,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:"-"`

    // NullFields is a list of field names (e.g. "Amount") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCustomBatchRequestEntryCancelLineItem) MarshalJSON Uses

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

type OrdersCustomBatchRequestEntryCreateTestReturnReturnItem Uses

type OrdersCustomBatchRequestEntryCreateTestReturnReturnItem struct {
    // LineItemId: The ID of the line item to return.
    LineItemId string `json:"lineItemId,omitempty"`

    // Quantity: Quantity that is returned.
    Quantity int64 `json:"quantity,omitempty"`

    // ForceSendFields is a list of field names (e.g. "LineItemId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "LineItemId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCustomBatchRequestEntryCreateTestReturnReturnItem) MarshalJSON Uses

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

type OrdersCustomBatchRequestEntryInStoreRefundLineItem Uses

type OrdersCustomBatchRequestEntryInStoreRefundLineItem struct {
    // AmountPretax: The amount that is refunded. Required.
    AmountPretax *Price `json:"amountPretax,omitempty"`

    // AmountTax: Tax amount that correspond to refund amount in
    // amountPretax. Required.
    AmountTax *Price `json:"amountTax,omitempty"`

    // LineItemId: The ID of the line item to return. Either lineItemId or
    // productId is required.
    LineItemId string `json:"lineItemId,omitempty"`

    // ProductId: The ID of the product to return. This is the REST ID used
    // in the products service. Either lineItemId or productId is required.
    ProductId string `json:"productId,omitempty"`

    // Quantity: The quantity to return and refund.
    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. "AmountPretax") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AmountPretax") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCustomBatchRequestEntryInStoreRefundLineItem) MarshalJSON Uses

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

type OrdersCustomBatchRequestEntryRefund Uses

type OrdersCustomBatchRequestEntryRefund struct {
    // Amount: Deprecated. Please use amountPretax and amountTax instead.
    Amount *Price `json:"amount,omitempty"`

    // AmountPretax: The amount that is refunded. Either amount or
    // amountPretax and amountTax should be filled.
    AmountPretax *Price `json:"amountPretax,omitempty"`

    // AmountTax: Tax amount that correspond to refund amount in
    // amountPretax.
    AmountTax *Price `json:"amountTax,omitempty"`

    // Reason: The reason for the refund.
    Reason string `json:"reason,omitempty"`

    // ReasonText: The explanation of the reason.
    ReasonText string `json:"reasonText,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Amount") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Amount") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCustomBatchRequestEntryRefund) MarshalJSON Uses

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

type OrdersCustomBatchRequestEntryRejectReturnLineItem Uses

type OrdersCustomBatchRequestEntryRejectReturnLineItem struct {
    // LineItemId: The ID of the line item to return. Either lineItemId or
    // productId is required.
    LineItemId string `json:"lineItemId,omitempty"`

    // ProductId: The ID of the product to return. This is the REST ID used
    // in the products service. Either lineItemId or productId is required.
    ProductId string `json:"productId,omitempty"`

    // Quantity: The quantity to return and refund.
    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:"-"`

    // NullFields is a list of field names (e.g. "LineItemId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCustomBatchRequestEntryRejectReturnLineItem) MarshalJSON Uses

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

type OrdersCustomBatchRequestEntryReturnLineItem Uses

type OrdersCustomBatchRequestEntryReturnLineItem struct {
    // LineItemId: The ID of the line item to return. Either lineItemId or
    // productId is required.
    LineItemId string `json:"lineItemId,omitempty"`

    // ProductId: The ID of the product to return. This is the REST ID used
    // in the products service. Either lineItemId or productId is required.
    ProductId string `json:"productId,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:"-"`

    // NullFields is a list of field names (e.g. "LineItemId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCustomBatchRequestEntryReturnLineItem) MarshalJSON Uses

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

type OrdersCustomBatchRequestEntryReturnRefundLineItem Uses

type OrdersCustomBatchRequestEntryReturnRefundLineItem struct {
    // AmountPretax: The amount that is refunded. If omitted, refundless
    // return is assumed (same as calling returnLineItem method). Optional,
    // but if filled then both amountPretax and amountTax must be set.
    AmountPretax *Price `json:"amountPretax,omitempty"`

    // AmountTax: Tax amount that correspond to refund amount in
    // amountPretax.
    AmountTax *Price `json:"amountTax,omitempty"`

    // LineItemId: The ID of the line item to return. Either lineItemId or
    // productId is required.
    LineItemId string `json:"lineItemId,omitempty"`

    // ProductId: The ID of the product to return. This is the REST ID used
    // in the products service. Either lineItemId or productId is required.
    ProductId string `json:"productId,omitempty"`

    // Quantity: The quantity to return and refund.
    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. "AmountPretax") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AmountPretax") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCustomBatchRequestEntryReturnRefundLineItem) MarshalJSON Uses

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

type OrdersCustomBatchRequestEntrySetLineItemMetadata Uses

type OrdersCustomBatchRequestEntrySetLineItemMetadata struct {
    Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"`

    // LineItemId: The ID of the line item to set metadata. Either
    // lineItemId or productId is required.
    LineItemId string `json:"lineItemId,omitempty"`

    // ProductId: The ID of the product to set metadata. This is the REST ID
    // used in the products service. Either lineItemId or productId is
    // required.
    ProductId string `json:"productId,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Annotations") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Annotations") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCustomBatchRequestEntrySetLineItemMetadata) MarshalJSON Uses

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

type OrdersCustomBatchRequestEntryShipLineItems Uses

type OrdersCustomBatchRequestEntryShipLineItems struct {
    // Carrier: Deprecated. Please use shipmentInfo instead. The carrier
    // handling the shipment. See shipments[].carrier in the  Orders
    // resource representation for a list of acceptable values.
    Carrier string `json:"carrier,omitempty"`

    // LineItems: Line items to ship.
    LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"`

    // ShipmentGroupId: ID of the shipment group. Required for orders that
    // use the orderinvoices service.
    ShipmentGroupId string `json:"shipmentGroupId,omitempty"`

    // ShipmentId: Deprecated. Please use shipmentInfo instead. The ID of
    // the shipment.
    ShipmentId string `json:"shipmentId,omitempty"`

    // ShipmentInfos: Shipment information. This field is repeated because a
    // single line item can be shipped in several packages (and have several
    // tracking IDs).
    ShipmentInfos []*OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo `json:"shipmentInfos,omitempty"`

    // TrackingId: Deprecated. Please use shipmentInfo instead. The tracking
    // id for the shipment.
    TrackingId string `json:"trackingId,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Carrier") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Carrier") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCustomBatchRequestEntryShipLineItems) MarshalJSON Uses

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

type OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo Uses

type OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo struct {
    // Carrier: The carrier handling the shipment. See shipments[].carrier
    // in the  Orders resource representation for a list of acceptable
    // values.
    Carrier string `json:"carrier,omitempty"`

    // ShipmentId: 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:"-"`

    // NullFields is a list of field names (e.g. "Carrier") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo) MarshalJSON Uses

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

type OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails Uses

type OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails struct {
    // DeliverByDate: Updated delivery by date, in ISO 8601 format. If not
    // specified only ship by date is updated.
    DeliverByDate string `json:"deliverByDate,omitempty"`

    // LineItemId: The ID of the line item to set metadata. Either
    // lineItemId or productId is required.
    LineItemId string `json:"lineItemId,omitempty"`

    // ProductId: The ID of the product to set metadata. This is the REST ID
    // used in the products service. Either lineItemId or productId is
    // required.
    ProductId string `json:"productId,omitempty"`

    // ShipByDate: Updated ship by date, in ISO 8601 format. If not
    // specified only deliver by date is updated.
    ShipByDate string `json:"shipByDate,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DeliverByDate") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DeliverByDate") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails) MarshalJSON Uses

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

type OrdersCustomBatchRequestEntryUpdateShipment Uses

type OrdersCustomBatchRequestEntryUpdateShipment struct {
    // Carrier: The carrier handling the shipment. Not updated if missing.
    // See shipments[].carrier in the  Orders resource representation for a
    // list of acceptable values.
    Carrier string `json:"carrier,omitempty"`

    // DeliveryDate: Date on which the shipment has been delivered, in ISO
    // 8601 format. Optional and can be provided only if status is
    // delivered.
    DeliveryDate string `json:"deliveryDate,omitempty"`

    // 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:"-"`

    // NullFields is a list of field names (e.g. "Carrier") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCustomBatchRequestEntryUpdateShipment) MarshalJSON Uses

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

type OrdersCustomBatchResponse Uses

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:"-"`

    // NullFields is a list of field names (e.g. "Entries") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCustomBatchResponse) MarshalJSON Uses

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

type OrdersCustomBatchResponseEntry Uses

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 request was successful; and
    // - the method is not get, getByMerchantOrderId, or one of the test
    // methods.
    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:"-"`

    // NullFields is a list of field names (e.g. "BatchId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersCustomBatchResponseEntry) MarshalJSON Uses

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

type OrdersCustombatchCall Uses

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

func (*OrdersCustombatchCall) Context Uses

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 Uses

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 Uses

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.

func (*OrdersCustombatchCall) Header Uses

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

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

type OrdersGetByMerchantOrderIdResponse Uses

type OrdersGetByMerchantOrderIdResponse struct {
    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#ordersGetByMerchantOrderIdResponse".
    Kind string `json:"kind,omitempty"`

    // Order: The requested order.
    Order *Order `json:"order,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Kind") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Kind") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersGetByMerchantOrderIdResponse) MarshalJSON Uses

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

type OrdersGetCall Uses

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

func (*OrdersGetCall) Context Uses

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 Uses

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 Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrdersGetCall) Header Uses

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

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

func (*OrdersGetCall) IfNoneMatch Uses

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 Uses

type OrdersGetTestOrderTemplateResponse struct {
    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#ordersGetTestOrderTemplateResponse".
    Kind string `json:"kind,omitempty"`

    // Template: The requested test order template.
    Template *TestOrder `json:"template,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Kind") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Kind") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersGetTestOrderTemplateResponse) MarshalJSON Uses

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

type OrdersGetbymerchantorderidCall Uses

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

func (*OrdersGetbymerchantorderidCall) Context Uses

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 Uses

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 Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrdersGetbymerchantorderidCall) Header Uses

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

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

func (*OrdersGetbymerchantorderidCall) IfNoneMatch Uses

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 Uses

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

func (*OrdersGettestordertemplateCall) Context Uses

func (c *OrdersGettestordertemplateCall) Context(ctx context.Context) *OrdersGettestordertemplateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrdersGettestordertemplateCall) Country Uses

func (c *OrdersGettestordertemplateCall) Country(country string) *OrdersGettestordertemplateCall

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

func (*OrdersGettestordertemplateCall) Do Uses

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 Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrdersGettestordertemplateCall) Header Uses

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

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

func (*OrdersGettestordertemplateCall) IfNoneMatch Uses

func (c *OrdersGettestordertemplateCall) IfNoneMatch(entityTag string) *OrdersGettestordertemplateCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type OrdersInStoreRefundLineItemRequest Uses

type OrdersInStoreRefundLineItemRequest struct {
    // AmountPretax: The amount that is refunded. Required.
    AmountPretax *Price `json:"amountPretax,omitempty"`

    // AmountTax: Tax amount that correspond to refund amount in
    // amountPretax. Required.
    AmountTax *Price `json:"amountTax,omitempty"`

    // LineItemId: The ID of the line item to return. Either lineItemId or
    // productId is required.
    LineItemId string `json:"lineItemId,omitempty"`

    // OperationId: The ID of the operation. Unique across all operations
    // for a given order.
    OperationId string `json:"operationId,omitempty"`

    // ProductId: The ID of the product to return. This is the REST ID used
    // in the products service. Either lineItemId or productId is required.
    ProductId string `json:"productId,omitempty"`

    // Quantity: The quantity to return and refund.
    Quantity int64 `json:"quantity,omitempty"`

    // Reason: The reason for the return.
    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. "AmountPretax") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AmountPretax") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersInStoreRefundLineItemRequest) MarshalJSON Uses

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

type OrdersInStoreRefundLineItemResponse Uses

type OrdersInStoreRefundLineItemResponse 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#ordersInStoreRefundLineItemResponse".
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ExecutionStatus") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrdersInStoreRefundLineItemResponse) MarshalJSON Uses

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

type OrdersInstorerefundlineitemCall Uses

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

func (*OrdersInstorerefundlineitemCall) Context Uses

func (c *OrdersInstorerefundlineitemCall) Context(ctx context.Context) *OrdersInstorerefundlineitemCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrdersInstorerefundlineitemCall) Do Uses

func (c *OrdersInstorerefundlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersInStoreRefundLineItemResponse, error)

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

func (*OrdersInstorerefundlineitemCall) Fields Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrdersInstorerefundlineitemCall) Header Uses

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

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

type OrdersListCall Uses

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

func (*OrdersListCall) Acknowledged Uses

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 Uses

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 Uses

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 Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrdersListCall) Header Uses

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

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

func (*OrdersListCall) IfNoneMatch Uses

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 Uses

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 Uses

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 Uses

func (c *OrdersListCall) PageToken(pageToken string) *OrdersListCall

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

func (*OrdersListCall) Pages Uses

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 Uses

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 Uses

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 Uses

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 Uses

type OrdersListResponse struct {
    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#ordersListResponse".
    Kind string `json:"kind,omitempty"`

    // NextPageToken: The token for the retrieval of the next page of
    // orders.
    NextPageToken string `json:"nextPageToken,omitempty"`

    Resources []*Order `json:"resources,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Kind") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Kind") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersListResponse) MarshalJSON Uses

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

type OrdersRefundCall Uses

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

func (*OrdersRefundCall) Context Uses

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 Uses

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 Uses

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.

func (*OrdersRefundCall) Header Uses

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

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

type OrdersRefundRequest Uses

type OrdersRefundRequest struct {
    // Amount: Deprecated. Please use amountPretax and amountTax instead.
    Amount *Price `json:"amount,omitempty"`

    // AmountPretax: The amount that is refunded. Either amount or
    // amountPretax and amountTax should be filled.
    AmountPretax *Price `json:"amountPretax,omitempty"`

    // AmountTax: Tax amount that correspond to refund amount in
    // amountPretax.
    AmountTax *Price `json:"amountTax,omitempty"`

    // OperationId: The ID of the operation. Unique across all operations
    // for a given order.
    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:"-"`

    // NullFields is a list of field names (e.g. "Amount") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersRefundRequest) MarshalJSON Uses

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

type OrdersRefundResponse Uses

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:"-"`

    // NullFields is a list of field names (e.g. "ExecutionStatus") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrdersRefundResponse) MarshalJSON Uses

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

type OrdersRejectReturnLineItemRequest Uses

type OrdersRejectReturnLineItemRequest struct {
    // LineItemId: The ID of the line item to return. Either lineItemId or
    // productId is required.
    LineItemId string `json:"lineItemId,omitempty"`

    // OperationId: The ID of the operation. Unique across all operations
    // for a given order.
    OperationId string `json:"operationId,omitempty"`

    // ProductId: The ID of the product to return. This is the REST ID used
    // in the products service. Either lineItemId or productId is required.
    ProductId string `json:"productId,omitempty"`

    // Quantity: The quantity to return and refund.
    Quantity int64 `json:"quantity,omitempty"`

    // Reason: The reason for the return.
    Reason string `json:"reason,omitempty"`

    // ReasonText: The explanation of the reason.
    ReasonText string `json:"reasonText,omitempty"`

    // ForceSendFields is a list of field names (e.g. "LineItemId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "LineItemId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersRejectReturnLineItemRequest) MarshalJSON Uses

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

type OrdersRejectReturnLineItemResponse Uses

type OrdersRejectReturnLineItemResponse 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#ordersRejectReturnLineItemResponse".
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ExecutionStatus") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrdersRejectReturnLineItemResponse) MarshalJSON Uses

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

type OrdersRejectreturnlineitemCall Uses

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

func (*OrdersRejectreturnlineitemCall) Context Uses

func (c *OrdersRejectreturnlineitemCall) Context(ctx context.Context) *OrdersRejectreturnlineitemCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrdersRejectreturnlineitemCall) Do Uses

func (c *OrdersRejectreturnlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersRejectReturnLineItemResponse, error)

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

func (*OrdersRejectreturnlineitemCall) Fields Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrdersRejectreturnlineitemCall) Header Uses

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

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

type OrdersReturnLineItemRequest Uses

type OrdersReturnLineItemRequest struct {
    // LineItemId: The ID of the line item to return. Either lineItemId or
    // productId is required.
    LineItemId string `json:"lineItemId,omitempty"`

    // OperationId: The ID of the operation. Unique across all operations
    // for a given order.
    OperationId string `json:"operationId,omitempty"`

    // ProductId: The ID of the product to return. This is the REST ID used
    // in the products service. Either lineItemId or productId is required.
    ProductId string `json:"productId,omitempty"`

    // Quantity: The quantity to return.
    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:"-"`

    // NullFields is a list of field names (e.g. "LineItemId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersReturnLineItemRequest) MarshalJSON Uses

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

type OrdersReturnLineItemResponse Uses

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:"-"`

    // NullFields is a list of field names (e.g. "ExecutionStatus") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrdersReturnLineItemResponse) MarshalJSON Uses

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

type OrdersReturnRefundLineItemRequest Uses

type OrdersReturnRefundLineItemRequest struct {
    // AmountPretax: The amount that is refunded. If omitted, refundless
    // return is assumed (same as calling returnLineItem method). Optional,
    // but if filled then both amountPretax and amountTax must be set.
    AmountPretax *Price `json:"amountPretax,omitempty"`

    // AmountTax: Tax amount that correspond to refund amount in
    // amountPretax.
    AmountTax *Price `json:"amountTax,omitempty"`

    // LineItemId: The ID of the line item to return. Either lineItemId or
    // productId is required.
    LineItemId string `json:"lineItemId,omitempty"`

    // OperationId: The ID of the operation. Unique across all operations
    // for a given order.
    OperationId string `json:"operationId,omitempty"`

    // ProductId: The ID of the product to return. This is the REST ID used
    // in the products service. Either lineItemId or productId is required.
    ProductId string `json:"productId,omitempty"`

    // Quantity: The quantity to return and refund.
    Quantity int64 `json:"quantity,omitempty"`

    // Reason: The reason for the return.
    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. "AmountPretax") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AmountPretax") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersReturnRefundLineItemRequest) MarshalJSON Uses

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

type OrdersReturnRefundLineItemResponse Uses

type OrdersReturnRefundLineItemResponse 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#ordersReturnRefundLineItemResponse".
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ExecutionStatus") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrdersReturnRefundLineItemResponse) MarshalJSON Uses

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

type OrdersReturnlineitemCall Uses

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

func (*OrdersReturnlineitemCall) Context Uses

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 Uses

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 Uses

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.

func (*OrdersReturnlineitemCall) Header Uses

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

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

type OrdersReturnrefundlineitemCall Uses

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

func (*OrdersReturnrefundlineitemCall) Context Uses

func (c *OrdersReturnrefundlineitemCall) Context(ctx context.Context) *OrdersReturnrefundlineitemCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrdersReturnrefundlineitemCall) Do Uses

func (c *OrdersReturnrefundlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersReturnRefundLineItemResponse, error)

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

func (*OrdersReturnrefundlineitemCall) Fields Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrdersReturnrefundlineitemCall) Header Uses

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

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

type OrdersService Uses

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

func NewOrdersService Uses

func NewOrdersService(s *APIService) *OrdersService

func (*OrdersService) Acknowledge Uses

func (r *OrdersService) Acknowledge(merchantId uint64, orderId string, ordersacknowledgerequest *OrdersAcknowledgeRequest) *OrdersAcknowledgeCall

Acknowledge: Marks an order as acknowledged.

func (*OrdersService) Advancetestorder Uses

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 Uses

func (r *OrdersService) Cancel(merchantId uint64, orderId string, orderscancelrequest *OrdersCancelRequest) *OrdersCancelCall

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

func (*OrdersService) Cancellineitem Uses

func (r *OrdersService) Cancellineitem(merchantId uint64, orderId string, orderscancellineitemrequest *OrdersCancelLineItemRequest) *OrdersCancellineitemCall

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

func (*OrdersService) Canceltestorderbycustomer Uses

func (r *OrdersService) Canceltestorderbycustomer(merchantId uint64, orderId string, orderscanceltestorderbycustomerrequest *OrdersCancelTestOrderByCustomerRequest) *OrdersCanceltestorderbycustomerCall

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

func (*OrdersService) Createtestorder Uses

func (r *OrdersService) Createtestorder(merchantId uint64, orderscreatetestorderrequest *OrdersCreateTestOrderRequest) *OrdersCreatetestorderCall

Createtestorder: Sandbox only. Creates a test order.

func (*OrdersService) Createtestreturn Uses

func (r *OrdersService) Createtestreturn(merchantId uint64, orderId string, orderscreatetestreturnrequest *OrdersCreateTestReturnRequest) *OrdersCreatetestreturnCall

Createtestreturn: Sandbox only. Creates a test return.

func (*OrdersService) Custombatch Uses

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

Custombatch: Retrieves or modifies multiple orders in a single request.

func (*OrdersService) Get Uses

func (r *OrdersService) Get(merchantId uint64, orderId string) *OrdersGetCall

Get: Retrieves an order from your Merchant Center account.

func (*OrdersService) Getbymerchantorderid Uses

func (r *OrdersService) Getbymerchantorderid(merchantId uint64, merchantOrderId string) *OrdersGetbymerchantorderidCall

Getbymerchantorderid: Retrieves an order using merchant order id.

func (*OrdersService) Gettestordertemplate Uses

func (r *OrdersService) Gettestordertemplate(merchantId uint64, templateName string) *OrdersGettestordertemplateCall

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

func (*OrdersService) Instorerefundlineitem Uses

func (r *OrdersService) Instorerefundlineitem(merchantId uint64, orderId string, ordersinstorerefundlineitemrequest *OrdersInStoreRefundLineItemRequest) *OrdersInstorerefundlineitemCall

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

func (*OrdersService) List Uses

func (r *OrdersService) List(merchantId uint64) *OrdersListCall

List: Lists the orders in your Merchant Center account.

func (*OrdersService) Refund Uses

func (r *OrdersService) Refund(merchantId uint64, orderId string, ordersrefundrequest *OrdersRefundRequest) *OrdersRefundCall

Refund: Deprecated, please use returnRefundLineItem instead.

func (*OrdersService) Rejectreturnlineitem Uses

func (r *OrdersService) Rejectreturnlineitem(merchantId uint64, orderId string, ordersrejectreturnlineitemrequest *OrdersRejectReturnLineItemRequest) *OrdersRejectreturnlineitemCall

Rejectreturnlineitem: Rejects return on an line item.

func (*OrdersService) Returnlineitem Uses

func (r *OrdersService) Returnlineitem(merchantId uint64, orderId string, ordersreturnlineitemrequest *OrdersReturnLineItemRequest) *OrdersReturnlineitemCall

Returnlineitem: Returns a line item.

func (*OrdersService) Returnrefundlineitem Uses

func (r *OrdersService) Returnrefundlineitem(merchantId uint64, orderId string, ordersreturnrefundlineitemrequest *OrdersReturnRefundLineItemRequest) *OrdersReturnrefundlineitemCall

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

func (*OrdersService) Setlineitemmetadata Uses

func (r *OrdersService) Setlineitemmetadata(merchantId uint64, orderId string, orderssetlineitemmetadatarequest *OrdersSetLineItemMetadataRequest) *OrdersSetlineitemmetadataCall

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

func (*OrdersService) Shiplineitems Uses

func (r *OrdersService) Shiplineitems(merchantId uint64, orderId string, ordersshiplineitemsrequest *OrdersShipLineItemsRequest) *OrdersShiplineitemsCall

Shiplineitems: Marks line item(s) as shipped.

func (*OrdersService) Updatelineitemshippingdetails Uses

func (r *OrdersService) Updatelineitemshippingdetails(merchantId uint64, orderId string, ordersupdatelineitemshippingdetailsrequest *OrdersUpdateLineItemShippingDetailsRequest) *OrdersUpdatelineitemshippingdetailsCall

Updatelineitemshippingdetails: Updates ship by and delivery by dates for a line item.

func (*OrdersService) Updatemerchantorderid Uses

func (r *OrdersService) Updatemerchantorderid(merchantId uint64, orderId string, ordersupdatemerchantorderidrequest *OrdersUpdateMerchantOrderIdRequest) *OrdersUpdatemerchantorderidCall

Updatemerchantorderid: Updates the merchant order ID for a given order.

func (*OrdersService) Updateshipment Uses

func (r *OrdersService) Updateshipment(merchantId uint64, orderId string, ordersupdateshipmentrequest *OrdersUpdateShipmentRequest) *OrdersUpdateshipmentCall

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

type OrdersSetLineItemMetadataRequest Uses

type OrdersSetLineItemMetadataRequest struct {
    Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"`

    // LineItemId: The ID of the line item to set metadata. Either
    // lineItemId or productId is required.
    LineItemId string `json:"lineItemId,omitempty"`

    // OperationId: The ID of the operation. Unique across all operations
    // for a given order.
    OperationId string `json:"operationId,omitempty"`

    // ProductId: The ID of the product to set metadata. This is the REST ID
    // used in the products service. Either lineItemId or productId is
    // required.
    ProductId string `json:"productId,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Annotations") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Annotations") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersSetLineItemMetadataRequest) MarshalJSON Uses

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

type OrdersSetLineItemMetadataResponse Uses

type OrdersSetLineItemMetadataResponse 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#ordersSetLineItemMetadataResponse".
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ExecutionStatus") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrdersSetLineItemMetadataResponse) MarshalJSON Uses

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

type OrdersSetlineitemmetadataCall Uses

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

func (*OrdersSetlineitemmetadataCall) Context Uses

func (c *OrdersSetlineitemmetadataCall) Context(ctx context.Context) *OrdersSetlineitemmetadataCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrdersSetlineitemmetadataCall) Do Uses

func (c *OrdersSetlineitemmetadataCall) Do(opts ...googleapi.CallOption) (*OrdersSetLineItemMetadataResponse, error)

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

func (*OrdersSetlineitemmetadataCall) Fields Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrdersSetlineitemmetadataCall) Header Uses

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

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

type OrdersShipLineItemsRequest Uses

type OrdersShipLineItemsRequest struct {
    // Carrier: Deprecated. Please use shipmentInfo instead. The carrier
    // handling the shipment. See shipments[].carrier in the  Orders
    // resource representation for a list of acceptable values.
    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"`

    // ShipmentGroupId: ID of the shipment group. Required for orders that
    // use the orderinvoices service.
    ShipmentGroupId string `json:"shipmentGroupId,omitempty"`

    // ShipmentId: Deprecated. Please use shipmentInfo instead. The ID of
    // the shipment.
    ShipmentId string `json:"shipmentId,omitempty"`

    // ShipmentInfos: Shipment information. This field is repeated because a
    // single line item can be shipped in several packages (and have several
    // tracking IDs).
    ShipmentInfos []*OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo `json:"shipmentInfos,omitempty"`

    // TrackingId: Deprecated. Please use shipmentInfo instead. The tracking
    // id for the shipment.
    TrackingId string `json:"trackingId,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Carrier") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Carrier") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersShipLineItemsRequest) MarshalJSON Uses

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

type OrdersShipLineItemsResponse Uses

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:"-"`

    // NullFields is a list of field names (e.g. "ExecutionStatus") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrdersShipLineItemsResponse) MarshalJSON Uses

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

type OrdersShiplineitemsCall Uses

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

func (*OrdersShiplineitemsCall) Context Uses

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 Uses

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 Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrdersShiplineitemsCall) Header Uses

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

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

type OrdersUpdateLineItemShippingDetailsRequest Uses

type OrdersUpdateLineItemShippingDetailsRequest struct {
    // DeliverByDate: Updated delivery by date, in ISO 8601 format. If not
    // specified only ship by date is updated.
    DeliverByDate string `json:"deliverByDate,omitempty"`

    // LineItemId: The ID of the line item to set metadata. Either
    // lineItemId or productId is required.
    LineItemId string `json:"lineItemId,omitempty"`

    // OperationId: The ID of the operation. Unique across all operations
    // for a given order.
    OperationId string `json:"operationId,omitempty"`

    // ProductId: The ID of the product to set metadata. This is the REST ID
    // used in the products service. Either lineItemId or productId is
    // required.
    ProductId string `json:"productId,omitempty"`

    // ShipByDate: Updated ship by date, in ISO 8601 format. If not
    // specified only deliver by date is updated.
    ShipByDate string `json:"shipByDate,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DeliverByDate") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DeliverByDate") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersUpdateLineItemShippingDetailsRequest) MarshalJSON Uses

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

type OrdersUpdateLineItemShippingDetailsResponse Uses

type OrdersUpdateLineItemShippingDetailsResponse 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#ordersUpdateLineItemShippingDetailsResponse".
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ExecutionStatus") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrdersUpdateLineItemShippingDetailsResponse) MarshalJSON Uses

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

type OrdersUpdateMerchantOrderIdRequest Uses

type OrdersUpdateMerchantOrderIdRequest struct {
    // MerchantOrderId: The merchant order id to be assigned to the order.
    // Must be unique per merchant.
    MerchantOrderId string `json:"merchantOrderId,omitempty"`

    // OperationId: The ID of the operation. Unique across all operations
    // for a given order.
    OperationId string `json:"operationId,omitempty"`

    // ForceSendFields is a list of field names (e.g. "MerchantOrderId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "MerchantOrderId") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrdersUpdateMerchantOrderIdRequest) MarshalJSON Uses

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

type OrdersUpdateMerchantOrderIdResponse Uses

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:"-"`

    // NullFields is a list of field names (e.g. "ExecutionStatus") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrdersUpdateMerchantOrderIdResponse) MarshalJSON Uses

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

type OrdersUpdateShipmentRequest Uses

type OrdersUpdateShipmentRequest struct {
    // Carrier: The carrier handling the shipment. Not updated if missing.
    // See shipments[].carrier in the  Orders resource representation for a
    // list of acceptable values.
    Carrier string `json:"carrier,omitempty"`

    // DeliveryDate: Date on which the shipment has been delivered, in ISO
    // 8601 format. Optional and can be provided only if status is
    // delivered.
    DeliveryDate string `json:"deliveryDate,omitempty"`

    // 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:"-"`

    // NullFields is a list of field names (e.g. "Carrier") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*OrdersUpdateShipmentRequest) MarshalJSON Uses

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

type OrdersUpdateShipmentResponse Uses

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:"-"`

    // NullFields is a list of field names (e.g. "ExecutionStatus") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*OrdersUpdateShipmentResponse) MarshalJSON Uses

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

type OrdersUpdatelineitemshippingdetailsCall Uses

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

func (*OrdersUpdatelineitemshippingdetailsCall) Context Uses

func (c *OrdersUpdatelineitemshippingdetailsCall) Context(ctx context.Context) *OrdersUpdatelineitemshippingdetailsCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrdersUpdatelineitemshippingdetailsCall) Do Uses

func (c *OrdersUpdatelineitemshippingdetailsCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateLineItemShippingDetailsResponse, error)

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

func (*OrdersUpdatelineitemshippingdetailsCall) Fields Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrdersUpdatelineitemshippingdetailsCall) Header Uses

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

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

type OrdersUpdatemerchantorderidCall Uses

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

func (*OrdersUpdatemerchantorderidCall) Context Uses

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 Uses

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 Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrdersUpdatemerchantorderidCall) Header Uses

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

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

type OrdersUpdateshipmentCall Uses

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

func (*OrdersUpdateshipmentCall) Context Uses

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 Uses

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 Uses

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

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrdersUpdateshipmentCall) Header Uses

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

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

type Price Uses

type Price struct {
    // Currency: The currency of the price.
    Currency string `json:"currency,omitempty"`

    // Value: The price represented as a number.
    Value string `json:"value,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Currency") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Currency") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*Price) MarshalJSON Uses

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

type Promotion Uses

type Promotion struct {
    // PromotionAmount: [required] Amount of the promotion. The values here
    // are the promotion applied to the unit price pretax and to the total
    // of the tax amounts.
    PromotionAmount *Amount `json:"promotionAmount,omitempty"`

    // PromotionId: [required] ID of the promotion.
    PromotionId string `json:"promotionId,omitempty"`

    // ForceSendFields is a list of field names (e.g. "PromotionAmount") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "PromotionAmount") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*Promotion) MarshalJSON Uses

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

type RefundReason Uses

type RefundReason struct {
    Description string `json:"description,omitempty"`

    ReasonCode string `json:"reasonCode,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Description") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Description") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*RefundReason) MarshalJSON Uses

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

type ReturnShipment Uses

type ReturnShipment struct {
    CreationDate string `json:"creationDate,omitempty"`

    ReturnMethodType string `json:"returnMethodType,omitempty"`

    ShipmentId string `json:"shipmentId,omitempty"`

    ShipmentTrackingInfos []*ShipmentTrackingInfo `json:"shipmentTrackingInfos,omitempty"`

    // ForceSendFields is a list of field names (e.g. "CreationDate") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CreationDate") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ReturnShipment) MarshalJSON Uses

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

type ShipmentInvoice Uses

type ShipmentInvoice struct {
    // InvoiceSummary: [required] Invoice summary.
    InvoiceSummary *InvoiceSummary `json:"invoiceSummary,omitempty"`

    // LineItemInvoices: [required] Invoice details per line item.
    LineItemInvoices []*ShipmentInvoiceLineItemInvoice `json:"lineItemInvoices,omitempty"`

    // ShipmentGroupId: [required] ID of the shipment group.
    ShipmentGroupId string `json:"shipmentGroupId,omitempty"`

    // ForceSendFields is a list of field names (e.g. "InvoiceSummary") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "InvoiceSummary") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*ShipmentInvoice) MarshalJSON Uses

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

type ShipmentInvoiceLineItemInvoice Uses

type ShipmentInvoiceLineItemInvoice struct {
    // LineItemId: ID of the line item. Either lineItemId or productId must
    // be set.
    LineItemId string `json:"lineItemId,omitempty"`

    // ProductId: ID of the product. This is the REST ID used in the
    // products service. Either lineItemId or productId must be set.
    ProductId string `json:"productId,omitempty"`

    // ShipmentUnitIds: [required] Unit IDs to define specific units within
    // the line item.
    ShipmentUnitIds []string `json:"shipmentUnitIds,omitempty"`

    // UnitInvoice: [required] Invoice details for a single unit.
    UnitInvoice *UnitInvoice `json:"unitInvoice,omitempty"`

    // ForceSendFields is a list of field names (e.g. "LineItemId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "LineItemId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ShipmentInvoiceLineItemInvoice) MarshalJSON Uses

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

type ShipmentTrackingInfo Uses

type ShipmentTrackingInfo struct {
    Carrier string `json:"carrier,omitempty"`

    TrackingNumber string `json:"trackingNumber,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Carrier") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Carrier") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ShipmentTrackingInfo) MarshalJSON Uses

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

type TestOrder Uses

type TestOrder struct {
    // Customer: The details of the customer who placed the order.
    Customer *TestOrderCustomer `json:"customer,omitempty"`

    // EnableOrderinvoices: Whether the orderinvoices service should support
    // this order.
    EnableOrderinvoices bool `json:"enableOrderinvoices,omitempty"`

    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#testOrder".
    Kind string `json:"kind,omitempty"`

    // LineItems: Line items that are ordered. At least one line item must
    // be provided.
    LineItems []*TestOrderLineItem `json:"lineItems,omitempty"`

    // NotificationMode: Determines if test order must be pulled by merchant
    // or pushed to merchant via push integration.
    NotificationMode string `json:"notificationMode,omitempty"`

    // PaymentMethod: The details of the payment method.
    PaymentMethod *TestOrderPaymentMethod `json:"paymentMethod,omitempty"`

    // PredefinedDeliveryAddress: Identifier of one of the predefined
    // delivery addresses for the delivery.
    PredefinedDeliveryAddress string `json:"predefinedDeliveryAddress,omitempty"`

    // Promotions: Deprecated. The details of the merchant provided
    // promotions applied to the order. More details about the program are
    // here.
    Promotions []*OrderLegacyPromotion `json:"promotions,omitempty"`

    // ShippingCost: The total cost of shipping for all items.
    ShippingCost *Price `json:"shippingCost,omitempty"`

    // ShippingCostTax: The tax for the total shipping cost.
    ShippingCostTax *Price `json:"shippingCostTax,omitempty"`

    // ShippingOption: The requested shipping option.
    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:"-"`

    // NullFields is a list of field names (e.g. "Customer") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TestOrder) MarshalJSON Uses

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

type TestOrderCustomer Uses

type TestOrderCustomer struct {
    // Email: Deprecated.
    Email string `json:"email,omitempty"`

    // ExplicitMarketingPreference: Deprecated. Please use
    // marketingRightsInfo instead.
    ExplicitMarketingPreference bool `json:"explicitMarketingPreference,omitempty"`

    // FullName: Full name of the customer.
    FullName string `json:"fullName,omitempty"`

    // MarketingRightsInfo: Customer's marketing preferences.
    MarketingRightsInfo *TestOrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Email") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Email") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TestOrderCustomer) MarshalJSON Uses

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

type TestOrderCustomerMarketingRightsInfo Uses

type TestOrderCustomerMarketingRightsInfo struct {
    // ExplicitMarketingPreference: Last know user use selection regards
    // marketing preferences. In certain cases selection might not be known,
    // so this field would be empty.
    ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"`

    // LastUpdatedTimestamp: Timestamp when last time marketing preference
    // was updated. Could be empty, if user wasn't offered a selection yet.
    LastUpdatedTimestamp string `json:"lastUpdatedTimestamp,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "ExplicitMarketingPreference") to unconditionally include in API
    // requests. By default, fields with empty values are omitted from API
    // requests. However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g.
    // "ExplicitMarketingPreference") to include in API requests with the
    // JSON null value. By default, fields with empty values are omitted
    // from API requests. However, any field with an empty value appearing
    // in NullFields will be sent to the server as null. It is an error if a
    // field in this list has a non-empty value. This may be used to include
    // null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TestOrderCustomerMarketingRightsInfo) MarshalJSON Uses

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

type TestOrderLineItem Uses

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:"-"`

    // NullFields is a list of field names (e.g. "Product") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TestOrderLineItem) MarshalJSON Uses

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

type TestOrderLineItemProduct Uses

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:"-"`

    // NullFields is a list of field names (e.g. "Brand") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*TestOrderLineItemProduct) MarshalJSON Uses

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

type TestOrderPaymentMethod Uses

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:"-"`

    // NullFields is a list of field names (e.g. "ExpirationMonth") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*TestOrderPaymentMethod) MarshalJSON Uses

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

type UnitInvoice Uses

type UnitInvoice struct {
    // AdditionalCharges: Additional charges for a unit, e.g. shipping
    // costs.
    AdditionalCharges []*UnitInvoiceAdditionalCharge `json:"additionalCharges,omitempty"`

    // Promotions: Promotions applied to a unit.
    Promotions []*Promotion `json:"promotions,omitempty"`

    // UnitPricePretax: [required] Price of the unit, before applying taxes.
    UnitPricePretax *Price `json:"unitPricePretax,omitempty"`

    // UnitPriceTaxes: Tax amounts to apply to the unit price.
    UnitPriceTaxes []*UnitInvoiceTaxLine `json:"unitPriceTaxes,omitempty"`

    // ForceSendFields is a list of field names (e.g. "AdditionalCharges")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AdditionalCharges") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*UnitInvoice) MarshalJSON Uses

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

type UnitInvoiceAdditionalCharge Uses

type UnitInvoiceAdditionalCharge struct {
    // AdditionalChargeAmount: [required] Amount of the additional charge.
    AdditionalChargeAmount *Amount `json:"additionalChargeAmount,omitempty"`

    // AdditionalChargePromotions: Promotions applied to the additional
    // charge.
    AdditionalChargePromotions []*Promotion `json:"additionalChargePromotions,omitempty"`

    // Type: [required] Type of the additional charge.
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "AdditionalChargeAmount") to unconditionally include in API requests.
    // By default, fields with empty values are omitted from API requests.
    // However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AdditionalChargeAmount")
    // to include in API requests with the JSON null value. By default,
    // fields with empty values are omitted from API requests. However, any
    // field with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*UnitInvoiceAdditionalCharge) MarshalJSON Uses

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

type UnitInvoiceTaxLine Uses

type UnitInvoiceTaxLine struct {
    // TaxAmount: [required] Tax amount for the tax type.
    TaxAmount *Price `json:"taxAmount,omitempty"`

    // TaxName: Optional name of the tax type. This should only be provided
    // if taxType is otherFeeTax.
    TaxName string `json:"taxName,omitempty"`

    // TaxType: [required] Type of the tax.
    TaxType string `json:"taxType,omitempty"`

    // ForceSendFields is a list of field names (e.g. "TaxAmount") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "TaxAmount") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*UnitInvoiceTaxLine) MarshalJSON Uses

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

Package content imports 14 packages (graph). Updated 2019-07-24. Refresh now. Tools for package owners.