[BindServiceMethod(typeof(ConsumerProcurementService), "BindService")]public abstract class ConsumerProcurementService.ConsumerProcurementServiceBase
Reference documentation and code samples for the Cloud Commerce Consumer Procurement v1 API class ConsumerProcurementService.ConsumerProcurementServiceBase.
Base class for server-side implementations of ConsumerProcurementService
The response to send back to the client (wrapped by a task).
PlaceOrder(PlaceOrderRequest, ServerCallContext)
public virtual Task<Operation> PlaceOrder(PlaceOrderRequest request, ServerCallContext context)
Creates a new [Order][google.cloud.commerce.consumer.procurement.v1.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
[OrderState.ORDER_STATE_ACTIVE][google.cloud.commerce.consumer.procurement.v1.OrderState.ORDER_STATE_ACTIVE].
In case of failure, the order resource will be removed.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eConsumerProcurementService.ConsumerProcurementServiceBase\u003c/code\u003e class, part of the Google Cloud Commerce Consumer Procurement v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eConsumerProcurementService.ConsumerProcurementServiceBase\u003c/code\u003e class serves as the base for server-side implementations of the \u003ccode\u003eConsumerProcurementService\u003c/code\u003e within the \u003ccode\u003eGoogle.Cloud.Commerce.Consumer.Procurement.V1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers methods to manage orders, including \u003ccode\u003eCancelOrder\u003c/code\u003e, \u003ccode\u003eGetOrder\u003c/code\u003e, \u003ccode\u003eListOrders\u003c/code\u003e, \u003ccode\u003eModifyOrder\u003c/code\u003e, and \u003ccode\u003ePlaceOrder\u003c/code\u003e, each requiring a specific request and server call context, and each returning a Task.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eConsumerProcurementService.ConsumerProcurementServiceBase\u003c/code\u003e class is 1.4.0, and there are previous versions available ranging from 1.0.0 to 1.3.0.\u003c/p\u003e\n"],["\u003cp\u003eThere is also information about the inherited members which are \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, \u003ccode\u003eMemberwiseClone\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Cloud Commerce Consumer Procurement v1 API - Class ConsumerProcurementService.ConsumerProcurementServiceBase (1.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementService.ConsumerProcurementServiceBase)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.4.0/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementService.ConsumerProcurementServiceBase)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.3.0/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementService.ConsumerProcurementServiceBase)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.2.0/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementService.ConsumerProcurementServiceBase)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.1.0/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementService.ConsumerProcurementServiceBase)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.0.0/Google.Cloud.Commerce.Consumer.Procurement.V1.ConsumerProcurementService.ConsumerProcurementServiceBase) \n\n [BindServiceMethod(typeof(ConsumerProcurementService), \"BindService\")]\n public abstract class ConsumerProcurementService.ConsumerProcurementServiceBase\n\nReference documentation and code samples for the Cloud Commerce Consumer Procurement v1 API class ConsumerProcurementService.ConsumerProcurementServiceBase.\n\nBase class for server-side implementations of ConsumerProcurementService \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ConsumerProcurementService.ConsumerProcurementServiceBase \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Commerce.Consumer.Procurement.V1](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Commerce.Consumer.Procurement.V1.dll\n\nMethods\n-------\n\n### CancelOrder(CancelOrderRequest, ServerCallContext)\n\n public virtual Task\u003cOperation\u003e CancelOrder(CancelOrderRequest request, ServerCallContext context)\n\nCancels an existing\n\\[Order\\]\\[google.cloud.commerce.consumer.procurement.v1.Order\\]. Every product\nprocured in the Order will be cancelled.\n\n### GetOrder(GetOrderRequest, ServerCallContext)\n\n public virtual Task\u003cOrder\u003e GetOrder(GetOrderRequest request, ServerCallContext context)\n\nReturns the requested\n\\[Order\\]\\[google.cloud.commerce.consumer.procurement.v1.Order\\] resource.\n\n### ListOrders(ListOrdersRequest, ServerCallContext)\n\n public virtual Task\u003cListOrdersResponse\u003e ListOrders(ListOrdersRequest request, ServerCallContext context)\n\nLists \\[Order\\]\\[google.cloud.commerce.consumer.procurement.v1.Order\\]\nresources that the user has access to, within the scope of the parent\nresource.\n\n### ModifyOrder(ModifyOrderRequest, ServerCallContext)\n\n public virtual Task\u003cOperation\u003e ModifyOrder(ModifyOrderRequest request, ServerCallContext context)\n\nModifies an existing\n\\[Order\\]\\[google.cloud.commerce.consumer.procurement.v1.Order\\] resource.\n\n### PlaceOrder(PlaceOrderRequest, ServerCallContext)\n\n public virtual Task\u003cOperation\u003e PlaceOrder(PlaceOrderRequest request, ServerCallContext context)\n\nCreates a new \\[Order\\]\\[google.cloud.commerce.consumer.procurement.v1.Order\\].\n\nThis API only supports GCP spend-based committed use\ndiscounts specified by GCP documentation.\n\nThe returned long-running operation is in-progress until the backend\ncompletes the creation of the resource. Once completed, the order is\nin\n\\[OrderState.ORDER_STATE_ACTIVE\\]\\[google.cloud.commerce.consumer.procurement.v1.OrderState.ORDER_STATE_ACTIVE\\].\nIn case of failure, the order resource will be removed."]]