Struct google_content2::api::OrderMethods[][src]

pub struct OrderMethods<'a> { /* fields omitted */ }
Expand description

A builder providing access to all methods supported on order resources. It is not used directly, but through the ShoppingContent hub.

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_content2 as content2;
 
use std::default::Default;
use oauth2;
use content2::ShoppingContent;
 
let secret: oauth2::ApplicationSecret = Default::default();
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
        secret,
        yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
    ).build().await.unwrap();
let mut hub = ShoppingContent::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `acknowledge(...)`, `advancetestorder(...)`, `cancel(...)`, `cancellineitem(...)`, `canceltestorderbycustomer(...)`, `createtestorder(...)`, `createtestreturn(...)`, `custombatch(...)`, `get(...)`, `getbymerchantorderid(...)`, `gettestordertemplate(...)`, `instorerefundlineitem(...)`, `list(...)`, `refund(...)`, `rejectreturnlineitem(...)`, `returnlineitem(...)`, `returnrefundlineitem(...)`, `setlineitemmetadata(...)`, `shiplineitems(...)`, `updatelineitemshippingdetails(...)`, `updatemerchantorderid(...)` and `updateshipment(...)`
// to build up your call.
let rb = hub.orders();

Implementations

Create a builder to help you perform the following task:

Marks an order as acknowledged.

Arguments

  • request - No description provided.
  • merchantId - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId - The ID of the order.

Create a builder to help you perform the following task:

Sandbox only. Moves a test order from state “inProgress” to state “pendingShipment”.

Arguments

  • merchantId - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId - The ID of the test order to modify.

Create a builder to help you perform the following task:

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

Arguments

  • request - No description provided.
  • merchantId - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId - The ID of the order to cancel.

Create a builder to help you perform the following task:

Cancels a line item, making a full refund.

Arguments

  • request - No description provided.
  • merchantId - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId - The ID of the order.

Create a builder to help you perform the following task:

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

Arguments

  • request - No description provided.
  • merchantId - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId - The ID of the test order to cancel.

Create a builder to help you perform the following task:

Sandbox only. Creates a test order.

Arguments

  • request - No description provided.
  • merchantId - The ID of the account that should manage the order. This cannot be a multi-client account.

Create a builder to help you perform the following task:

Sandbox only. Creates a test return.

Arguments

  • request - No description provided.
  • merchantId - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId - The ID of the order.

Create a builder to help you perform the following task:

Retrieves or modifies multiple orders in a single request.

Arguments

  • request - No description provided.

Create a builder to help you perform the following task:

Retrieves an order from your Merchant Center account.

Arguments

  • merchantId - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId - The ID of the order.

Create a builder to help you perform the following task:

Retrieves an order using merchant order ID.

Arguments

  • merchantId - The ID of the account that manages the order. This cannot be a multi-client account.
  • merchantOrderId - The merchant order ID to be looked for.

Create a builder to help you perform the following task:

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

Arguments

  • merchantId - The ID of the account that should manage the order. This cannot be a multi-client account.
  • templateName - The name of the template to retrieve.

Create a builder to help you perform the following task:

Deprecated. Notifies that item return and refund was handled directly by merchant outside of Google payments processing (e.g. cash refund done in store). Note: We recommend calling the returnrefundlineitem method to refund in-store returns. We will issue the refund directly to the customer. This helps to prevent possible differences arising between merchant and Google transaction records. We also recommend having the point of sale system communicate with Google to ensure that customers do not receive a double refund by first refunding via Google then via an in-store return.

Arguments

  • request - No description provided.
  • merchantId - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId - The ID of the order.

Create a builder to help you perform the following task:

Lists the orders in your Merchant Center account.

Arguments

  • merchantId - The ID of the account that manages the order. This cannot be a multi-client account.

Create a builder to help you perform the following task:

Deprecated, please use returnRefundLineItem instead.

Arguments

  • request - No description provided.
  • merchantId - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId - The ID of the order to refund.

Create a builder to help you perform the following task:

Rejects return on an line item.

Arguments

  • request - No description provided.
  • merchantId - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId - The ID of the order.

Create a builder to help you perform the following task:

Returns a line item.

Arguments

  • request - No description provided.
  • merchantId - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId - The ID of the order.

Create a builder to help you perform the following task:

Returns and refunds a line item. Note that this method can only be called on fully shipped orders. Please also note that the Orderreturns API is the preferred way to handle returns after you receive a return from a customer. You can use Orderreturns.list or Orderreturns.get to search for the return, and then use Orderreturns.processreturn to issue the refund. If the return cannot be found, then we recommend using this API to issue a refund.

Arguments

  • request - No description provided.
  • merchantId - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId - The ID of the order.

Create a builder to help you perform the following task:

Sets (or overrides if it already exists) merchant provided annotations in the form of key-value pairs. A common use case would be to supply us with additional structured information about a line item that cannot be provided via other methods. Submitted key-value pairs can be retrieved as part of the orders resource.

Arguments

  • request - No description provided.
  • merchantId - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId - The ID of the order.

Create a builder to help you perform the following task:

Marks line item(s) as shipped.

Arguments

  • request - No description provided.
  • merchantId - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId - The ID of the order.

Create a builder to help you perform the following task:

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

Arguments

  • request - No description provided.
  • merchantId - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId - The ID of the order.

Create a builder to help you perform the following task:

Updates the merchant order ID for a given order.

Arguments

  • request - No description provided.
  • merchantId - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId - The ID of the order.

Create a builder to help you perform the following task:

Updates a shipment’s status, carrier, and/or tracking ID.

Arguments

  • request - No description provided.
  • merchantId - The ID of the account that manages the order. This cannot be a multi-client account.
  • orderId - The ID of the order.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.