class Orderinvoices extends Resource (View source)

The "orderinvoices" collection of methods.

Typical usage is:

 $contentService = new Google\Service\ShoppingContent(...);
 $orderinvoices = $contentService->orderinvoices;

Methods

createchargeinvoice(string $merchantId, string $orderId, OrderinvoicesCreateChargeInvoiceRequest $postBody, array $optParams = [])

Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice enabled orders. (orderinvoices.createchargeinvoice)

createrefundinvoice(string $merchantId, string $orderId, OrderinvoicesCreateRefundInvoiceRequest $postBody, array $optParams = [])

Creates a refund invoice for one or more shipment groups, and triggers a refund for orderinvoice enabled 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. (orderinvoices.createrefundinvoice)

Details

OrderinvoicesCreateChargeInvoiceResponse createchargeinvoice(string $merchantId, string $orderId, OrderinvoicesCreateChargeInvoiceRequest $postBody, array $optParams = [])

Creates a charge invoice for a shipment group, and triggers a charge capture for orderinvoice enabled orders. (orderinvoices.createchargeinvoice)

Parameters

string $merchantId

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

string $orderId

The ID of the order.

OrderinvoicesCreateChargeInvoiceRequest $postBody
array $optParams

Optional parameters.

Return Value

OrderinvoicesCreateChargeInvoiceResponse

Exceptions

Exception

OrderinvoicesCreateRefundInvoiceResponse createrefundinvoice(string $merchantId, string $orderId, OrderinvoicesCreateRefundInvoiceRequest $postBody, array $optParams = [])

Creates a refund invoice for one or more shipment groups, and triggers a refund for orderinvoice enabled 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. (orderinvoices.createrefundinvoice)

Parameters

string $merchantId

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

string $orderId

The ID of the order.

OrderinvoicesCreateRefundInvoiceRequest $postBody
array $optParams

Optional parameters.

Return Value

OrderinvoicesCreateRefundInvoiceResponse

Exceptions

Exception