google-cloud-cloudcommerceconsumerprocurement overview (0.22.0)

com.google.cloud.commerce.consumer.procurement.v1

A client to Cloud Commerce Consumer Procurement API

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

ConsumerProcurementServiceClient

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
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
     ConsumerProcurementServiceClient.create()) {
   String name = "name3373707";
   Order response = consumerProcurementServiceClient.getOrder(name);
 }
 

com.google.cloud.commerce.consumer.procurement.v1.stub

com.google.cloud.commerce.consumer.procurement.v1alpha1

A client to Cloud Commerce Consumer Procurement API

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

ConsumerProcurementServiceClient

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
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (ConsumerProcurementServiceClient consumerProcurementServiceClient =
     ConsumerProcurementServiceClient.create()) {
   String name = "name3373707";
   Order response = consumerProcurementServiceClient.getOrder(name);
 }
 

com.google.cloud.commerce.consumer.procurement.v1alpha1.stub