ConsumerProcurementService allows customers to make purchases of products served by the Cloud Commerce platform.
When purchases are made, the programs the appropriate backends, including both Google's own infrastructure, as well as third-party systems, and to enable billing setup for charging for the procured item.
v1alpha1
Package
@google-cloud/procurementConstructors
(constructor)(opts, gaxInstance)
constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);
Construct an instance of ConsumerProcurementServiceClient.
Parameters | |
---|---|
Name | Description |
opts |
ClientOptions
|
gaxInstance |
typeof gax | typeof fallback
: loaded instance of |
Properties
apiEndpoint
static get apiEndpoint(): string;
The DNS address for this API service - same as servicePath(), exists for compatibility reasons.
auth
auth: gax.GoogleAuth;
consumerProcurementServiceStub
consumerProcurementServiceStub?: Promise<{
[name: string]: Function;
}>;
descriptors
descriptors: Descriptors;
innerApiCalls
innerApiCalls: {
[name: string]: Function;
};
operationsClient
operationsClient: gax.OperationsClient;
pathTemplates
pathTemplates: {
[name: string]: gax.PathTemplate;
};
port
static get port(): number;
The port for this API service.
scopes
static get scopes(): string[];
The scopes needed to make gRPC calls for every method defined in this service.
servicePath
static get servicePath(): string;
The DNS address for this API service.
warn
warn: (code: string, message: string, warnType?: string) => void;
Methods
billingAccountPath(billingAccount)
billingAccountPath(billingAccount: string): string;
Return a fully-qualified billingAccount resource name string.
Parameter | |
---|---|
Name | Description |
billingAccount |
string
|
Returns | |
---|---|
Type | Description |
string | {string} Resource name string. |
cancelOperation(request, options, callback)
cancelOperation(request: protos.google.longrunning.CancelOperationRequest, options?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.CancelOperationRequest, {} | undefined | null>, callback?: Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>): Promise<protos.google.protobuf.Empty>;
Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED
. Clients can use or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an value with a of 1, corresponding to Code.CANCELLED
.
Parameters | |
---|---|
Name | Description |
request |
CancelOperationRequest
The request object that will be sent. |
options |
CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.CancelOperationRequest, {} | undefined | null>
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
callback |
Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>
The function which will be called with the result of the API call. {Promise} - The promise which resolves when API call finishes. The promise has a method named "cancel" which cancels the ongoing API call. |
Returns | |
---|---|
Type | Description |
Promise<protos.google.protobuf.Empty> |
const client = longrunning.operationsClient();
await client.cancelOperation({name: ''});
checkPlaceOrderProgress(name)
checkPlaceOrderProgress(name: string): Promise<LROperation<protos.google.cloud.commerce.consumer.procurement.v1alpha1.Order, protos.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata>>;
Check the status of the long running operation returned by placeOrder()
.
Parameter | |
---|---|
Name | Description |
name |
string
The operation name that will be passed. |
Returns | |
---|---|
Type | Description |
Promise<LROperation<protos.google.cloud.commerce.consumer.procurement.v1alpha1.Order, protos.google.cloud.commerce.consumer.procurement.v1alpha1.PlaceOrderMetadata>> | {Promise} - The promise which resolves to an object. The decoded operation object has result and metadata field to get information from. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The resource name of the parent resource.
* This field has the form `billingAccounts/{billing-account-id}`.
*/
// const parent = 'abc123'
/**
* Required. The user-specified name of the order being placed.
*/
// const displayName = 'abc123'
/**
* Optional. Places order for offer. Required when an offer-based order is
* being placed.
*/
// const lineItemInfo = [1,2,3,4]
/**
* Optional. A unique identifier for this request.
* The server will ignore subsequent requests that provide a duplicate request
* ID for at least 120 minutes after the first request.
* The request ID must be a valid
* UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
*/
// const requestId = 'abc123'
// Imports the Procurement library
const {ConsumerProcurementServiceClient} = require('@google-cloud/procurement').v1alpha1;
// Instantiates a client
const procurementClient = new ConsumerProcurementServiceClient();
async function callPlaceOrder() {
// Construct request
const request = {
parent,
displayName,
};
// Run request
const [operation] = await procurementClient.placeOrder(request);
const [response] = await operation.promise();
console.log(response);
}
callPlaceOrder();
close()
close(): Promise<void>;
Terminate the gRPC channel and close the client.
The client will no longer be usable and all future behavior is undefined.
Returns | |
---|---|
Type | Description |
Promise<void> | {Promise} A promise that resolves when the client is closed. |
deleteOperation(request, options, callback)
deleteOperation(request: protos.google.longrunning.DeleteOperationRequest, options?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>): Promise<protos.google.protobuf.Empty>;
Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns google.rpc.Code.UNIMPLEMENTED
.
Parameters | |
---|---|
Name | Description |
request |
DeleteOperationRequest
The request object that will be sent. |
options |
CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
callback |
Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>
The function which will be called with the result of the API call. {Promise} - The promise which resolves when API call finishes. The promise has a method named "cancel" which cancels the ongoing API call. |
Returns | |
---|---|
Type | Description |
Promise<protos.google.protobuf.Empty> |
const client = longrunning.operationsClient();
await client.deleteOperation({name: ''});
getOperation(request, options, callback)
getOperation(request: protos.google.longrunning.GetOperationRequest, options?: gax.CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>): Promise<[protos.google.longrunning.Operation]>;
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
Parameters | |
---|---|
Name | Description |
request |
GetOperationRequest
The request object that will be sent. |
options |
CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
callback |
Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>
The function which will be called with the result of the API call. The second parameter to the callback is an object representing . {Promise} - The promise which resolves to an array. The first element of the array is an object representing . The promise has a method named "cancel" which cancels the ongoing API call. |
Returns | |
---|---|
Type | Description |
Promise<[protos.google.longrunning.Operation]> |
const client = longrunning.operationsClient();
const name = '';
const [response] = await client.getOperation({name});
// doThingsWith(response)
getOrder(request, options)
getOrder(request?: protos.google.cloud.commerce.consumer.procurement.v1alpha1.IGetOrderRequest, options?: CallOptions): Promise<[
protos.google.cloud.commerce.consumer.procurement.v1alpha1.IOrder,
(protos.google.cloud.commerce.consumer.procurement.v1alpha1.IGetOrderRequest | undefined),
{} | undefined
]>;
Returns the requested Order resource.
Parameters | |
---|---|
Name | Description |
request |
IGetOrderRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
Returns | |
---|---|
Type | Description |
Promise<[
protos.google.cloud.commerce.consumer.procurement.v1alpha1.IOrder,
(protos.google.cloud.commerce.consumer.procurement.v1alpha1.IGetOrderRequest | undefined),
{} | undefined
]> | {Promise} - The promise which resolves to an array. The first element of the array is an object representing Order. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The name of the order to retrieve.
*/
// const name = 'abc123'
// Imports the Procurement library
const {ConsumerProcurementServiceClient} = require('@google-cloud/procurement').v1alpha1;
// Instantiates a client
const procurementClient = new ConsumerProcurementServiceClient();
async function callGetOrder() {
// Construct request
const request = {
name,
};
// Run request
const response = await procurementClient.getOrder(request);
console.log(response);
}
callGetOrder();
getOrder(request, options, callback)
getOrder(request: protos.google.cloud.commerce.consumer.procurement.v1alpha1.IGetOrderRequest, options: CallOptions, callback: Callback<protos.google.cloud.commerce.consumer.procurement.v1alpha1.IOrder, protos.google.cloud.commerce.consumer.procurement.v1alpha1.IGetOrderRequest | null | undefined, {} | null | undefined>): void;
Parameters | |
---|---|
Name | Description |
request |
IGetOrderRequest
|
options |
CallOptions
|
callback |
Callback<protos.google.cloud.commerce.consumer.procurement.v1alpha1.IOrder, protos.google.cloud.commerce.consumer.procurement.v1alpha1.IGetOrderRequest | null | undefined, {} | null | undefined>
|
Returns | |
---|---|
Type | Description |
void |
getOrder(request, callback)
getOrder(request: protos.google.cloud.commerce.consumer.procurement.v1alpha1.IGetOrderRequest, callback: Callback<protos.google.cloud.commerce.consumer.procurement.v1alpha1.IOrder, protos.google.cloud.commerce.consumer.procurement.v1alpha1.IGetOrderRequest | null | undefined, {} | null | undefined>): void;
Parameters | |
---|---|
Name | Description |
request |
IGetOrderRequest
|
callback |
Callback<protos.google.cloud.commerce.consumer.procurement.v1alpha1.IOrder, protos.google.cloud.commerce.consumer.procurement.v1alpha1.IGetOrderRequest | null | undefined, {} | null | undefined>
|
Returns | |
---|---|
Type | Description |
void |
getProjectId()
getProjectId(): Promise<string>;
Returns | |
---|---|
Type | Description |
Promise<string> |
getProjectId(callback)
getProjectId(callback: Callback<string, undefined, undefined>): void;
Parameter | |
---|---|
Name | Description |
callback |
Callback<string, undefined, undefined>
|
Returns | |
---|---|
Type | Description |
void |
initialize()
initialize(): Promise<{
[name: string]: Function;
}>;
Initialize the client. Performs asynchronous operations (such as authentication) and prepares the client. This function will be called automatically when any class method is called for the first time, but if you need to initialize it before calling an actual method, feel free to call initialize() directly.
You can await on this method if you want to make sure the client is initialized.
Returns | |
---|---|
Type | Description |
Promise<{
[name: string]: Function;
}> | {Promise} A promise that resolves to an authenticated service stub. |
listOperationsAsync(request, options)
listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.ListOperationsResponse>;
Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns UNIMPLEMENTED
. Returns an iterable object.
For-await-of syntax is used with the iterable to recursively get response element on-demand.
Parameters | |
---|---|
Name | Description |
request |
ListOperationsRequest
The request object that will be sent. |
options |
CallOptions
Optional parameters. You can override the default settings for this call, e.g, timeout, retries, paginations, etc. See gax.CallOptions for the details. |
Returns | |
---|---|
Type | Description |
AsyncIterable<protos.google.longrunning.ListOperationsResponse> | {Object} An iterable Object that conforms to iteration protocols. |
const client = longrunning.operationsClient();
for await (const response of client.listOperationsAsync(request));
// doThingsWith(response)
listOrders(request, options)
listOrders(request?: protos.google.cloud.commerce.consumer.procurement.v1alpha1.IListOrdersRequest, options?: CallOptions): Promise<[
protos.google.cloud.commerce.consumer.procurement.v1alpha1.IOrder[],
protos.google.cloud.commerce.consumer.procurement.v1alpha1.IListOrdersRequest | null,
protos.google.cloud.commerce.consumer.procurement.v1alpha1.IListOrdersResponse
]>;
Lists Order resources that the user has access to, within the scope of the parent resource.
Parameters | |
---|---|
Name | Description |
request |
IListOrdersRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
Returns | |
---|---|
Type | Description |
Promise<[
protos.google.cloud.commerce.consumer.procurement.v1alpha1.IOrder[],
protos.google.cloud.commerce.consumer.procurement.v1alpha1.IListOrdersRequest | null,
protos.google.cloud.commerce.consumer.procurement.v1alpha1.IListOrdersResponse
]> | {Promise} - The promise which resolves to an array. The first element of the array is Array of Order. The client library will perform auto-pagination by default: it will call the API as many times as needed and will merge results from all the pages into this array. Note that it can affect your quota. We recommend using |
listOrders(request, options, callback)
listOrders(request: protos.google.cloud.commerce.consumer.procurement.v1alpha1.IListOrdersRequest, options: CallOptions, callback: PaginationCallback<protos.google.cloud.commerce.consumer.procurement.v1alpha1.IListOrdersRequest, protos.google.cloud.commerce.consumer.procurement.v1alpha1.IListOrdersResponse | null | undefined, protos.google.cloud.commerce.consumer.procurement.v1alpha1.IOrder>): void;
Parameters | |
---|---|
Name | Description |
request |
IListOrdersRequest
|
options |
CallOptions
|
callback |
PaginationCallback<protos.google.cloud.commerce.consumer.procurement.v1alpha1.IListOrdersRequest, protos.google.cloud.commerce.consumer.procurement.v1alpha1.IListOrdersResponse | null | undefined, protos.google.cloud.commerce.consumer.procurement.v1alpha1.IOrder>
|
Returns | |
---|---|
Type | Description |
void |
listOrders(request, callback)
listOrders(request: protos.google.cloud.commerce.consumer.procurement.v1alpha1.IListOrdersRequest, callback: PaginationCallback<protos.google.cloud.commerce.consumer.procurement.v1alpha1.IListOrdersRequest, protos.google.cloud.commerce.consumer.procurement.v1alpha1.IListOrdersResponse | null | undefined, protos.google.cloud.commerce.consumer.procurement.v1alpha1.IOrder>): void;
Parameters | |
---|---|
Name | Description |
request |
IListOrdersRequest
|
callback |
PaginationCallback<protos.google.cloud.commerce.consumer.procurement.v1alpha1.IListOrdersRequest, protos.google.cloud.commerce.consumer.procurement.v1alpha1.IListOrdersResponse | null | undefined, protos.google.cloud.commerce.consumer.procurement.v1alpha1.IOrder>
|
Returns | |
---|---|
Type | Description |
void |
listOrdersAsync(request, options)
listOrdersAsync(request?: protos.google.cloud.commerce.consumer.procurement.v1alpha1.IListOrdersRequest, options?: CallOptions): AsyncIterable<protos.google.cloud.commerce.consumer.procurement.v1alpha1.IOrder>;
Equivalent to listOrders
, but returns an iterable object.
for
-await
-of
syntax is used with the iterable to get response elements on-demand.
Parameters | |
---|---|
Name | Description |
request |
IListOrdersRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
Returns | |
---|---|
Type | Description |
AsyncIterable<protos.google.cloud.commerce.consumer.procurement.v1alpha1.IOrder> | {Object} An iterable Object that allows async iteration. When you iterate the returned iterable, each element will be an object representing Order. The API will be called under the hood as needed, once per the page, so you can stop the iteration when you don't need more results. Please see the documentation for more details and examples. |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The parent resource to query for orders.
* This field has the form `billingAccounts/{billing-account-id}`.
*/
// const parent = 'abc123'
/**
* The maximum number of entries requested.
* The default page size is 25 and the maximum page size is 200.
*/
// const pageSize = 1234
/**
* The token for fetching the next page.
*/
// const pageToken = 'abc123'
/**
* Filter that you can use to limit the list request.
* A query string that can match a selected set of attributes
* with string values. For example, `display_name=abc`.
* Supported query attributes are
* * `display_name`
* If the query contains special characters other than letters,
* underscore, or digits, the phrase must be quoted with double quotes. For
* example, `display_name="foo:bar"`, where the display name needs to be
* quoted because it contains special character colon.
* Queries can be combined with `OR`, and `NOT` to form more complex queries.
* You can also group them to force a desired evaluation order.
* For example, `display_name=abc OR display_name=def`.
*/
// const filter = 'abc123'
// Imports the Procurement library
const {ConsumerProcurementServiceClient} = require('@google-cloud/procurement').v1alpha1;
// Instantiates a client
const procurementClient = new ConsumerProcurementServiceClient();
async function callListOrders() {
// Construct request
const request = {
parent,
};
// Run request
const iterable = await procurementClient.listOrdersAsync(request);
for await (const response of iterable) {
console.log(response);
}
}
callListOrders();
listOrdersStream(request, options)
listOrdersStream(request?: protos.google.cloud.commerce.consumer.procurement.v1alpha1.IListOrdersRequest, options?: CallOptions): Transform;
Equivalent to method.name.toCamelCase()
, but returns a NodeJS Stream object.
Parameters | |
---|---|
Name | Description |
request |
IListOrdersRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
Returns | |
---|---|
Type | Description |
Transform | {Stream} An object stream which emits an object representing Order on 'data' event. The client library will perform auto-pagination by default: it will call the API as many times as needed. Note that it can affect your quota. We recommend using |
matchBillingAccountFromBillingAccountName(billingAccountName)
matchBillingAccountFromBillingAccountName(billingAccountName: string): string | number;
Parse the billing_account from BillingAccount resource.
Parameter | |
---|---|
Name | Description |
billingAccountName |
string
A fully-qualified path representing BillingAccount resource. |
Returns | |
---|---|
Type | Description |
string | number | {string} A string representing the billing_account. |
matchBillingAccountFromOrderName(orderName)
matchBillingAccountFromOrderName(orderName: string): string | number;
Parse the billing_account from Order resource.
Parameter | |
---|---|
Name | Description |
orderName |
string
A fully-qualified path representing Order resource. |
Returns | |
---|---|
Type | Description |
string | number | {string} A string representing the billing_account. |
matchOrderFromOrderName(orderName)
matchOrderFromOrderName(orderName: string): string | number;
Parse the order from Order resource.
Parameter | |
---|---|
Name | Description |
orderName |
string
A fully-qualified path representing Order resource. |
Returns | |
---|---|
Type | Description |
string | number | {string} A string representing the order. |
orderPath(billingAccount, order)
orderPath(billingAccount: string, order: string): string;
Return a fully-qualified order resource name string.
Parameters | |
---|---|
Name | Description |
billingAccount |
string
|
order |
string
|
Returns | |
---|---|
Type | Description |
string | {string} Resource name string. |
placeOrder(request, options)
placeOrder(request?: protos.google.cloud.commerce.consumer.procurement.v1alpha1.IPlaceOrderRequest, options?: CallOptions): Promise<[
LROperation<protos.google.cloud.commerce.consumer.procurement.v1alpha1.IOrder, protos.google.cloud.commerce.consumer.procurement.v1alpha1.IPlaceOrderMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]>;
Creates a new Order.
This API only supports GCP spend-based committed use discounts specified by GCP documentation.
The returned long-running operation is in-progress until the backend completes the creation of the resource. Once completed, the order is in . In case of failure, the order resource will be removed.
Parameters | |
---|---|
Name | Description |
request |
IPlaceOrderRequest
The request object that will be sent. |
options |
CallOptions
Call options. See CallOptions for more details. |
Returns | |
---|---|
Type | Description |
Promise<[
LROperation<protos.google.cloud.commerce.consumer.procurement.v1alpha1.IOrder, protos.google.cloud.commerce.consumer.procurement.v1alpha1.IPlaceOrderMetadata>,
protos.google.longrunning.IOperation | undefined,
{} | undefined
]> | {Promise} - The promise which resolves to an array. The first element of the array is an object representing a long running operation. Its |
/**
* This snippet has been automatically generated and should be regarded as a code template only.
* It will require modifications to work.
* It may require correct/in-range values for request initialization.
* TODO(developer): Uncomment these variables before running the sample.
*/
/**
* Required. The resource name of the parent resource.
* This field has the form `billingAccounts/{billing-account-id}`.
*/
// const parent = 'abc123'
/**
* Required. The user-specified name of the order being placed.
*/
// const displayName = 'abc123'
/**
* Optional. Places order for offer. Required when an offer-based order is
* being placed.
*/
// const lineItemInfo = [1,2,3,4]
/**
* Optional. A unique identifier for this request.
* The server will ignore subsequent requests that provide a duplicate request
* ID for at least 120 minutes after the first request.
* The request ID must be a valid
* UUID (https://en.wikipedia.org/wiki/Universally_unique_identifier#Format).
*/
// const requestId = 'abc123'
// Imports the Procurement library
const {ConsumerProcurementServiceClient} = require('@google-cloud/procurement').v1alpha1;
// Instantiates a client
const procurementClient = new ConsumerProcurementServiceClient();
async function callPlaceOrder() {
// Construct request
const request = {
parent,
displayName,
};
// Run request
const [operation] = await procurementClient.placeOrder(request);
const [response] = await operation.promise();
console.log(response);
}
callPlaceOrder();
placeOrder(request, options, callback)
placeOrder(request: protos.google.cloud.commerce.consumer.procurement.v1alpha1.IPlaceOrderRequest, options: CallOptions, callback: Callback<LROperation<protos.google.cloud.commerce.consumer.procurement.v1alpha1.IOrder, protos.google.cloud.commerce.consumer.procurement.v1alpha1.IPlaceOrderMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters | |
---|---|
Name | Description |
request |
IPlaceOrderRequest
|
options |
CallOptions
|
callback |
Callback<LROperation<protos.google.cloud.commerce.consumer.procurement.v1alpha1.IOrder, protos.google.cloud.commerce.consumer.procurement.v1alpha1.IPlaceOrderMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
Returns | |
---|---|
Type | Description |
void |
placeOrder(request, callback)
placeOrder(request: protos.google.cloud.commerce.consumer.procurement.v1alpha1.IPlaceOrderRequest, callback: Callback<LROperation<protos.google.cloud.commerce.consumer.procurement.v1alpha1.IOrder, protos.google.cloud.commerce.consumer.procurement.v1alpha1.IPlaceOrderMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
Parameters | |
---|---|
Name | Description |
request |
IPlaceOrderRequest
|
callback |
Callback<LROperation<protos.google.cloud.commerce.consumer.procurement.v1alpha1.IOrder, protos.google.cloud.commerce.consumer.procurement.v1alpha1.IPlaceOrderMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>
|
Returns | |
---|---|
Type | Description |
void |