google-cloud-cloudcommerceconsumerprocurement overview (0.15.0)

A client to Cloud Commerce Consumer Procurement API

The interfaces provided are listed below, along with usage samples.


Service Description: ConsumerProcurementService allows customers to make purchases of products served by the Cloud Commerce platform.

When purchases are made, the ConsumerProcurementService 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.

Sample for ConsumerProcurementServiceClient:

 // 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.
 // - It may require specifying regional endpoints when creating the service client as shown in
 try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
     ConsumerProcurementServiceClient.create()) {
   GetOrderRequest request = GetOrderRequest.newBuilder().setName("name3373707").build();
   Order response = consumerProcurementServiceClient.getOrder(request);