C# Class Netshoes.Api.V1.ProductsApi

Represents a collection of functions to interact with the API endpoints
Inheritance: IProductsApi
Afficher le fichier Open project: netshoes/marketplace-api-sdk-csharp

Méthodes publiques

Méthode Description
GetBasePath ( String basePath ) : String

Gets the base path of the API client.

GetProduct ( string ProductId, string Expand ) : ProductResource

Get the product by product id.

GetProductAsync ( string ProductId, string Expand ) : Task

Get the product by product id.

ListProductAttributes ( string ProductId ) : AttributeListResource

Get the list of product attributes.

ListProductAttributesAsync ( string ProductId ) : Task

Get the list of product attributes.

ListProducts ( int Page, int Size, string Expand ) : ProductListResource

Get the list of products.

ListProductsAsync ( int Page, int Size, string Expand ) : Task

Get the list of products.

PatchProduct ( string ProductId, ProductResource Body ) : ProductResource

Partialy update the product.

PatchProductAsync ( string ProductId, ProductResource Body ) : Task

Partialy update the product.

ProductsApi ( ApiClient apiClient = null ) : System

Initializes a new instance of the ProductsApi class.

ProductsApi ( String basePath ) : System

Initializes a new instance of the ProductsApi class.

SaveProduct ( ProductResource Body ) : ProductResource

Create a new product.

SaveProductAsync ( ProductResource Body ) : Task

Create a new product.

SetBasePath ( String basePath ) : void

Sets the base path of the API client.

UpdateProduct ( string ProductId, ProductResource Body ) : ProductResource

Update the product.

UpdateProductAsync ( string ProductId, ProductResource Body ) : Task

Update the product.

Method Details

GetBasePath() public méthode

Gets the base path of the API client.
public GetBasePath ( String basePath ) : String
basePath String
Résultat String

GetProduct() public méthode

Get the product by product id.
public GetProduct ( string ProductId, string Expand ) : ProductResource
ProductId string
Expand string
Résultat Netshoes.Api.V1.Model.ProductResource

GetProductAsync() public méthode

Get the product by product id.
public GetProductAsync ( string ProductId, string Expand ) : Task
ProductId string
Expand string
Résultat Task

ListProductAttributes() public méthode

Get the list of product attributes.
public ListProductAttributes ( string ProductId ) : AttributeListResource
ProductId string
Résultat Netshoes.Api.V1.Model.AttributeListResource

ListProductAttributesAsync() public méthode

Get the list of product attributes.
public ListProductAttributesAsync ( string ProductId ) : Task
ProductId string
Résultat Task

ListProducts() public méthode

Get the list of products.
public ListProducts ( int Page, int Size, string Expand ) : ProductListResource
Page int
Size int
Expand string
Résultat Netshoes.Api.V1.Model.ProductListResource

ListProductsAsync() public méthode

Get the list of products.
public ListProductsAsync ( int Page, int Size, string Expand ) : Task
Page int
Size int
Expand string
Résultat Task

PatchProduct() public méthode

Partialy update the product.
public PatchProduct ( string ProductId, ProductResource Body ) : ProductResource
ProductId string
Body Netshoes.Api.V1.Model.ProductResource
Résultat Netshoes.Api.V1.Model.ProductResource

PatchProductAsync() public méthode

Partialy update the product.
public PatchProductAsync ( string ProductId, ProductResource Body ) : Task
ProductId string
Body Netshoes.Api.V1.Model.ProductResource
Résultat Task

ProductsApi() public méthode

Initializes a new instance of the ProductsApi class.
public ProductsApi ( ApiClient apiClient = null ) : System
apiClient Netshoes.Api.V1.Client.ApiClient
Résultat System

ProductsApi() public méthode

Initializes a new instance of the ProductsApi class.
public ProductsApi ( String basePath ) : System
basePath String
Résultat System

SaveProduct() public méthode

Create a new product.
public SaveProduct ( ProductResource Body ) : ProductResource
Body Netshoes.Api.V1.Model.ProductResource
Résultat Netshoes.Api.V1.Model.ProductResource

SaveProductAsync() public méthode

Create a new product.
public SaveProductAsync ( ProductResource Body ) : Task
Body Netshoes.Api.V1.Model.ProductResource
Résultat Task

SetBasePath() public méthode

Sets the base path of the API client.
public SetBasePath ( String basePath ) : void
basePath String
Résultat void

UpdateProduct() public méthode

Update the product.
public UpdateProduct ( string ProductId, ProductResource Body ) : ProductResource
ProductId string
Body Netshoes.Api.V1.Model.ProductResource
Résultat Netshoes.Api.V1.Model.ProductResource

UpdateProductAsync() public méthode

Update the product.
public UpdateProductAsync ( string ProductId, ProductResource Body ) : Task
ProductId string
Body Netshoes.Api.V1.Model.ProductResource
Résultat Task