C# Class Netshoes.Api.V1.ProductsApi

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

Public Methods

Method 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 method

Gets the base path of the API client.
public GetBasePath ( String basePath ) : String
basePath String
return String

GetProduct() public method

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

GetProductAsync() public method

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

ListProductAttributes() public method

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

ListProductAttributesAsync() public method

Get the list of product attributes.
public ListProductAttributesAsync ( string ProductId ) : Task
ProductId string
return Task

ListProducts() public method

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

ListProductsAsync() public method

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

PatchProduct() public method

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

PatchProductAsync() public method

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

ProductsApi() public method

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

ProductsApi() public method

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

SaveProduct() public method

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

SaveProductAsync() public method

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

SetBasePath() public method

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

UpdateProduct() public method

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

UpdateProductAsync() public method

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