Class OrderreturnsResource.LabelsResource.CreateRequest
Links a return shipping label to a return id. You can only create one return label per return id. Since the label is sent to the buyer, the linked return label cannot be updated or deleted. If you try to create multiple return shipping labels for a single return id, every create request except the first will fail.
Inheritance
OrderreturnsResource.LabelsResource.CreateRequest
Inherited Members
Namespace: Google.Apis.ShoppingContent.v2_1
Assembly: Google.Apis.ShoppingContent.v2_1.dll
Syntax
public class OrderreturnsResource.LabelsResource.CreateRequest : ShoppingContentBaseServiceRequest<ReturnShippingLabel>, IClientServiceRequest<ReturnShippingLabel>, IClientServiceRequest
Constructors
CreateRequest(IClientService, ReturnShippingLabel, long, string)
Constructs a new Create request.
Declaration
public CreateRequest(IClientService service, ReturnShippingLabel body, long merchantId, string returnId)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
ReturnShippingLabel | body | |
long | merchantId | |
string | returnId |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MerchantId
Required. The merchant the Return Shipping Label belongs to.
Declaration
[RequestParameter("merchantId", RequestParameterType.Path)]
public virtual long MerchantId { get; }
Property Value
Type | Description |
---|---|
long |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
ReturnId
Required. Provide the Google-generated merchant order return ID.
Declaration
[RequestParameter("returnId", RequestParameterType.Path)]
public virtual string ReturnId { get; }
Property Value
Type | Description |
---|---|
string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Create parameter list.
Declaration
protected override void InitParameters()