commercetools.Sdk
The commercetools platform, import-api and C# sdks generated from our api reference.
Loading...
Searching...
No Matches
Public Member Functions | Properties
commercetools.Sdk.Api.Client.RequestBuilders.DiscountCodes.ByProjectKeyDiscountCodesPost Class Reference

Inherits commercetools.Base.Client.ApiMethod< ByProjectKeyDiscountCodesPost >, commercetools.Base.Client.IApiMethod< ByProjectKeyDiscountCodesPost, commercetools.Sdk.Api.Models.DiscountCodes.IDiscountCode >, commercetools.Sdk.Api.Client.IExpandableTrait< ByProjectKeyDiscountCodesPost >, commercetools.Sdk.Api.Client.IDeprecatable201Trait< ByProjectKeyDiscountCodesPost >, and commercetools.Sdk.Api.Client.IErrorableTrait< ByProjectKeyDiscountCodesPost >.

Public Member Functions

 ByProjectKeyDiscountCodesPost (IClient apiHttpClient, ISerializerService serializerService, string projectKey, commercetools.Sdk.Api.Models.DiscountCodes.IDiscountCodeDraft discountCodeDraft)
 
List< string > GetExpand ()
 
ByProjectKeyDiscountCodesPost WithExpand (string expand)
 
async Task< commercetools.Sdk.Api.Models.DiscountCodes.IDiscountCodeExecuteAsync (CancellationToken cancellationToken=default)
 
async Task< string > ExecuteAsJsonAsync (CancellationToken cancellationToken=default)
 
async Task< IApiResponse< commercetools.Sdk.Api.Models.DiscountCodes.IDiscountCode > > SendAsync (CancellationToken cancellationToken=default)
 
async Task< IApiResponse< string > > SendAsJsonAsync (CancellationToken cancellationToken=default)
 
override HttpRequestMessage Build ()
 
- Public Member Functions inherited from commercetools.Base.Client.ApiMethod< ByProjectKeyDiscountCodesPost >
 ApiMethod ()
 
AddQueryParam (string key, string value)
 
WithQueryParam (List< KeyValuePair< string, string > > queryParams)
 
ICollection< KeyValuePair< string, string > > GetQueryParams ()
 
List< string > GetQueryParam (string key)
 
string? GetFirstQueryParam (string key)
 
AddHeader (string key, string value)
 
WithHeaders (ApiHttpHeaders headers)
 
- Public Member Functions inherited from commercetools.Base.Client.IApiMethod< ByProjectKeyDiscountCodesPost, commercetools.Sdk.Api.Models.DiscountCodes.IDiscountCode >
AddQueryParam (string key, string value)
 
WithQueryParam (List< KeyValuePair< string, string > > queryParams)
 
List< string > GetQueryParam (string key)
 
AddHeader (string key, string value)
 
WithHeaders (ApiHttpHeaders headers)
 
HttpRequestMessage Build ()
 
Task< TResult > ExecuteAsync (CancellationToken cancellationToken=default)
 
Task< IApiResponse< TResult > > SendAsync (CancellationToken cancellationToken=default)
 
Task< string > ExecuteAsJsonAsync (CancellationToken cancellationToken=default)
 
Task< IApiResponse< string > > SendAsJsonAsync (CancellationToken cancellationToken=default)
 
- Public Member Functions inherited from commercetools.Sdk.Api.Client.IExpandableTrait< ByProjectKeyDiscountCodesPost >
List< string > GetExpand ()
 
WithExpand (string expand)
 
IExpandableTrait< T > AsExpandableTrait ()
 
AsExpandableTraitToBaseType ()
 
- Public Member Functions inherited from commercetools.Sdk.Api.Client.IDeprecatable201Trait< ByProjectKeyDiscountCodesPost >
IDeprecatable201Trait< T > AsDeprecatable201Trait ()
 
AsDeprecatable201TraitToBaseType ()
 
- Public Member Functions inherited from commercetools.Sdk.Api.Client.IErrorableTrait< ByProjectKeyDiscountCodesPost >
IErrorableTrait< T > AsErrorableTrait ()
 
AsErrorableTraitToBaseType ()
 

Properties

override HttpMethod Method [get]
 
- Properties inherited from commercetools.Base.Client.ApiMethod< ByProjectKeyDiscountCodesPost >
HttpMethod Method [get]
 
string RequestUrl [get, set]
 
ApiHttpHeaders Headers [get, set]
 
- Properties inherited from commercetools.Base.Client.IApiMethod< ByProjectKeyDiscountCodesPost, commercetools.Sdk.Api.Models.DiscountCodes.IDiscountCode >
HttpMethod Method [get]
 
string RequestUrl [get, set]
 

Constructor & Destructor Documentation

◆ ByProjectKeyDiscountCodesPost()

commercetools.Sdk.Api.Client.RequestBuilders.DiscountCodes.ByProjectKeyDiscountCodesPost.ByProjectKeyDiscountCodesPost ( IClient  apiHttpClient,
ISerializerService  serializerService,
string  projectKey,
commercetools::Sdk::Api::Models::DiscountCodes::IDiscountCodeDraft  discountCodeDraft 
)
inline

Member Function Documentation

◆ Build()

override HttpRequestMessage commercetools.Sdk.Api.Client.RequestBuilders.DiscountCodes.ByProjectKeyDiscountCodesPost.Build ( )
inlinevirtual

◆ ExecuteAsJsonAsync()

async Task< string > commercetools.Sdk.Api.Client.RequestBuilders.DiscountCodes.ByProjectKeyDiscountCodesPost.ExecuteAsJsonAsync ( CancellationToken  cancellationToken = default)
inline

◆ ExecuteAsync()

async Task< commercetools.Sdk.Api.Models.DiscountCodes.IDiscountCode > commercetools.Sdk.Api.Client.RequestBuilders.DiscountCodes.ByProjectKeyDiscountCodesPost.ExecuteAsync ( CancellationToken  cancellationToken = default)
inline

◆ GetExpand()

List< string > commercetools.Sdk.Api.Client.RequestBuilders.DiscountCodes.ByProjectKeyDiscountCodesPost.GetExpand ( )
inline

◆ SendAsJsonAsync()

async Task< IApiResponse< string > > commercetools.Sdk.Api.Client.RequestBuilders.DiscountCodes.ByProjectKeyDiscountCodesPost.SendAsJsonAsync ( CancellationToken  cancellationToken = default)
inline

◆ SendAsync()

async Task< IApiResponse< commercetools.Sdk.Api.Models.DiscountCodes.IDiscountCode > > commercetools.Sdk.Api.Client.RequestBuilders.DiscountCodes.ByProjectKeyDiscountCodesPost.SendAsync ( CancellationToken  cancellationToken = default)
inline

◆ WithExpand()

ByProjectKeyDiscountCodesPost commercetools.Sdk.Api.Client.RequestBuilders.DiscountCodes.ByProjectKeyDiscountCodesPost.WithExpand ( string  expand)
inline

Property Documentation

◆ Method

override HttpMethod commercetools.Sdk.Api.Client.RequestBuilders.DiscountCodes.ByProjectKeyDiscountCodesPost.Method
get

The documentation for this class was generated from the following file: